]> git.ipfire.org Git - thirdparty/kernel/stable.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 11:57:59 +0000 (13:57 +0200)
commit1503899b2bceed6fb747943ba3ed266d78716384
tree7437c533c91681df84afa9f950d4ee9a90b60d40
parent341fb81e86db42ed17eac3507d180c737c2e3e5e
net: phy: at803x: move page selection fix to config_init

[ Upstream commit 4f3a00c7f5b2cfe4e127fd3fe49b55e1b318c01f ]

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: c329e5afb42f ("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