]> 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2022 13:28:19 +0000 (13:28 +0000)
commit8bf42dd558b7230d997b62eaa08452d2c9a2231c
tree52b48bcbee26d4f12172d03911f87e17cf17e86e
parenteada83f9a65c55916553980d7c18c9b536a5f1a8
net: phy: at803x: move page selection fix to config_init

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: 9bf0222d424b ("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>
drivers/net/phy/at803x.c