]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: at803x: move page selection fix to config_init
authorRobert Hancock <robert.hancock@calian.com>
Tue, 25 Jan 2022 16:54:08 +0000 (10:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:26 +0000 (14:23 +0200)
commitf61d5207d9296fe90709d36c22d5a2075664aad1
tree80d8b50a169ee2f78e9c85837198b69a96de039c
parent7879017bb7f6774f3d678b6b4249d2d8ea8440f4
net: phy: at803x: move page selection fix to config_init

[ Upstream commit 5d9eeda9259d39ee564f0580c39065053a18ff86 ]

The fix to select the copper page on AR8031 was being done in the probe
function rather than config_init, so it would not be redone after resume
from suspend. Move this to config_init so it is always redone when
needed.

Fixes: a627ec63d05b ("net: phy: at803x: select correct page on config init")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/at803x.c