LF-3469: net: phy: at803x: Disable PHY hibernation during init
authorShenwei Wang <shenwei.wang@nxp.com>
Tue, 27 Apr 2021 16:27:28 +0000 (11:27 -0500)
committerShenwei Wang <shenwei.wang@nxp.com>
Tue, 27 Apr 2021 16:27:28 +0000 (11:27 -0500)
commit61ba1419666aaf9734efc10b5d35467476b48b41
treeb5274bd2f359c156d6c2368d76ad008012becd47
parentf0cd88429c08a754dc235ca87b9ab5fb19f00dce
LF-3469: net: phy: at803x: Disable PHY hibernation during init

The Atheros 803x PHY will go to hibernate mode after
10 seconds if no activity on the link.
When in hibernation, it will not provide any clock to the MAC.

This caused issue when trying to bring up the interface when
no cable was connected: MAC driver would timeout, and the PHY
power domain would stay on. It is also possible that this caused
issues with EEE capable remote PHY.

Disabling this feature during initialization to avoid potential
side effects.

Signed-off-by: Seb Haezebrouck <sebastien.haezebrouck@nxp.com>
Reviewed-by: Shenwei Wang <shenwei.wang@nxp.com>
drivers/net/phy/at803x.c