diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-01-05 16:07:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-08 14:20:21 -0500 |
commit | f102852f980eac250855504c18f195900616deec (patch) | |
tree | b732623e465dfbea31110fe84ebf2fcb3b73210f /drivers/net/phy/at803x.c | |
parent | 64f26abb17ca2e55ab584352ca4d68cf42c8c102 (diff) | |
download | talos-obmc-linux-f102852f980eac250855504c18f195900616deec.tar.gz talos-obmc-linux-f102852f980eac250855504c18f195900616deec.zip |
net: phy: fix wrong masks to phy_modify()
The mask argument for phy_modify() in several locations was inverted.
Fixes: fea23fb591cc ("net: phy: convert read-modify-write to phy_modify()")
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/at803x.c')
-rw-r--r-- | drivers/net/phy/at803x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index c2715908d43e..411cf1072bae 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -230,7 +230,7 @@ static int at803x_suspend(struct phy_device *phydev) static int at803x_resume(struct phy_device *phydev) { - return phy_modify(phydev, MII_BMCR, ~(BMCR_PDOWN | BMCR_ISOLATE), 0); + return phy_modify(phydev, MII_BMCR, BMCR_PDOWN | BMCR_ISOLATE, 0); } static int at803x_probe(struct phy_device *phydev) |