diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-12-05 21:49:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-06 01:26:16 +0100 |
commit | d3351931a37bdb329b5ea761424579fa91c866ee (patch) | |
tree | af767f26f2e84bb473d54359a5b62a26102737f9 /drivers/net/phy | |
parent | phy: marvell: Rename mii_lpa_to_linkmode_lpa_t (diff) | |
download | linux-d3351931a37bdb329b5ea761424579fa91c866ee.tar.xz linux-d3351931a37bdb329b5ea761424579fa91c866ee.zip |
net: mii: Add mii_lpa_mod_linkmode_lpa_t
Add a _mod_ variant of mii_lpa_to_linkmode_lpa_t. Use this to fix the
genphy_read_status() where the 1G link partner features are getting
lost.
Fixes: c0ec3c273677 ("net: phy: Convert u32 phydev->lp_advertising to linkmode")
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/phy_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index c20b5ecc0f4b..7d5d698604aa 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -1748,7 +1748,7 @@ int genphy_read_status(struct phy_device *phydev) if (lpa < 0) return lpa; - mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa); + mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); adv = phy_read(phydev, MII_ADVERTISE); if (adv < 0) |