]> Git Repo - linux.git/commit
net: phy: micrel: add toggling phy reset if PHY is not attached
authorYoshihiro Shimoda <[email protected]>
Wed, 28 Nov 2018 09:02:42 +0000 (09:02 +0000)
committerDavid S. Miller <[email protected]>
Mon, 3 Dec 2018 23:20:18 +0000 (15:20 -0800)
commit8c85f4b81296a530b8af2796c110fa482ac42d4f
treedf9dbaeed490e5cb9a074fb35bc1fe107ee8dd6f
parentef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a
net: phy: micrel: add toggling phy reset if PHY is not attached

This patch adds toggling phy reset if PHY is not attached. Otherwise,
some boards (e.g. R-Car H3 Salvator-XS) cannot link up correctly if
we do the following method:

 1) Kernel boots by using initramfs.
 --> No open the nic, so phy_device_register() and phy_probe()
     deasserts the reset.
 2) Kernel enters the suspend.
 --> So, keep the reset signal as deassert.
 --> On R-Car Salvator-XS board, unfortunately, the board power is
     turned off.
 3) Kernel returns from suspend.
 4) ifconfig eth0 up
 --> Then, since edge signal of the reset doesn't happen,
     it cannot link up.
 5) ifconfig eth0 down
 6) ifconfig eth0 up
 --> In this case, it can link up.

Reported-by: Hiromitsu Yamasaki <[email protected]>
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/phy/micrel.c
This page took 0.049182 seconds and 4 git commands to generate.