diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-02-23 01:50:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-24 01:12:09 +0300 |
commit | 3b845d87d858dd699c5fbc2081ea0fd8ba1f1e9c (patch) | |
tree | 327d2c386564632e0af74894716b70570dfeacee /drivers/net/phy/phy-c45.c | |
parent | 09c4c57f7bc4150cfe516126d921ae15c32750e7 (diff) | |
download | linux-3b845d87d858dd699c5fbc2081ea0fd8ba1f1e9c.tar.xz |
net: phy: don't change modes we don't care about in genphy_c45_read_lpa
Because 1000BaseT isn't covered by Clause 45, the 1000BaseT flags in
phydev->lp_advertising may have been set based on vendor registers
already. genphy_c45_read_lpa() would clear these flags as of today.
Therefore switch to mii_lpa_mod_linkmode_lpa_t.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy-c45.c')
-rw-r--r-- | drivers/net/phy/phy-c45.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy-c45.c b/drivers/net/phy/phy-c45.c index fc3173cc078b..2d1ba43e14ec 100644 --- a/drivers/net/phy/phy-c45.c +++ b/drivers/net/phy/phy-c45.c @@ -275,7 +275,7 @@ int genphy_c45_read_lpa(struct phy_device *phydev) if (val < 0) return val; - mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, val); + mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, val); phydev->pause = val & LPA_PAUSE_CAP ? 1 : 0; phydev->asym_pause = val & LPA_PAUSE_ASYM ? 1 : 0; |