net: dp83867: Fix WoL SecureOn password
authorDan Murphy <dmurphy@ti.com>
Wed, 2 Sep 2020 19:27:04 +0000 (14:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:21 +0000 (19:14 +0200)
commit6aef739073384ea855cf694f3c5d43a5a8872141
tree93e6874098e507dca71b60201229d812260a1f11
parentd7983d7b64c46be8fdc24ea861227660855c61a5
net: dp83867: Fix WoL SecureOn password

[ Upstream commit 8b4a11c67da538504d60ae917ffe5254f59b1248 ]

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 <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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/dp83867.c