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: caabee5b53
("net: phy: dp83867: support Wake on LAN")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f614e53670
commit
8b4a11c67d
|
@ -215,9 +215,9 @@ static int dp83867_set_wol(struct phy_device *phydev,
|
||||||
if (wol->wolopts & WAKE_MAGICSECURE) {
|
if (wol->wolopts & WAKE_MAGICSECURE) {
|
||||||
phy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFSOP1,
|
phy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFSOP1,
|
||||||
(wol->sopass[1] << 8) | wol->sopass[0]);
|
(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]);
|
(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]);
|
(wol->sopass[5] << 8) | wol->sopass[4]);
|
||||||
|
|
||||||
val_rxcfg |= DP83867_WOL_SEC_EN;
|
val_rxcfg |= DP83867_WOL_SEC_EN;
|
||||||
|
|
Loading…
Reference in New Issue