net: dp83867: Fix WoL SecureOn password
Subsystems (3)
PATCH 1/1 net: dp83867: Fix WoL SecureOn password
Fix the registers being written to as the values were being over written when writing the same registers.
Fixes caabee5b53f5 ("net: phy: dp83867: support Wake on LAN")
Signed-off-by Dan Murphy <[email protected]>
--- drivers/net/phy/dp83867.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/phy/dp83867.c +2 -2
@@ -215,9 +215,9 @@ static int dp83867_set_wol(struct phy_device *phydev,if (wol->wolopts &WAKE_MAGICSECURE ) {phy_write_mmd (phydev,DP83867_DEVADDR ,DP83867_RXFSOP1 , (wol->sopass[1 ] <<8 ) | wol->sopass[0 ]); -phy_write_mmd (phydev,DP83867_DEVADDR ,DP83867_RXFSOP1 , +phy_write_mmd (phydev,DP83867_DEVADDR ,DP83867_RXFSOP2 , (wol->sopass[3 ] <<8 ) | wol->sopass[2 ]); -phy_write_mmd (phydev,DP83867_DEVADDR ,DP83867_RXFSOP1 , +phy_write_mmd (phydev,DP83867_DEVADDR ,DP83867_RXFSOP3 , (wol->sopass[5 ] <<8 ) | wol->sopass[4 ]); val_rxcfg |=DP83867_WOL_SEC_EN ;
Signature · 1 line
2.28.0
Quoted 5 lines · Dan Murphy
Fix the registers being written to as the values were being over written when writing the same registers.
Fixes caabee5b53f5 ("net: phy: dp83867: support Wake on LAN")Signed-off-by Dan Murphy <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
Quoted 5 lines · Dan Murphy
Fix the registers being written to as the values were being over written when writing the same registers.
Fixes caabee5b53f5 ("net: phy: dp83867: support Wake on LAN")Signed-off-by Dan Murphy <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian
David Miller
maintainerFrom: Dan Murphy <[email protected]>
Date: Wed, 2 Sep 2020 14:27:04 -0500
Quoted 5 lines
Fix the registers being written to as the values were being over written when writing the same registers.
Fixes caabee5b53f5 ("net: phy: dp83867: support Wake on LAN")Signed-off-by Dan Murphy <[email protected]>
Applied and queued up for -stable, thanks.