netsec: restore phy power state after controller reset
authorMian Yousaf Kaukab <ykaukab@suse.de>
Thu, 18 Mar 2021 08:50:26 +0000 (09:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 18:22:04 +0000 (11:22 -0700)
commit804741ac7b9f2fdebe3740cb0579cb8d94d49e60
treeb580e071035b84c95386449762ab46e1dc29c6e0
parentdcc32f4f183ab8479041b23a1525d48233df1d43
netsec: restore phy power state after controller reset

Since commit 8e850f25b581 ("net: socionext: Stop PHY before resetting
netsec") netsec_netdev_init() power downs phy before resetting the
controller. However, the state is not restored once the reset is
complete. As a result it is not possible to bring up network on a
platform with Broadcom BCM5482 phy.

Fix the issue by restoring phy power state after controller reset is
complete.

Fixes: 8e850f25b581 ("net: socionext: Stop PHY before resetting netsec")
Cc: stable@vger.kernel.org
Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c