From: Shenwei Wang Date: Tue, 27 Apr 2021 16:27:28 +0000 (-0500) Subject: LF-3469: net: phy: at803x: Disable PHY hibernation during init X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~160 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=61ba1419666aaf9734efc10b5d35467476b48b41;p=linux.git 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 Reviewed-by: Shenwei Wang --- diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index 652a5d026d35..b2e54bf47109 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -681,6 +681,8 @@ static int at803x_config_init(struct phy_device *phydev) return ret; } + at803x_debug_reg_mask(phydev, 0xB, BIT(15), 0); + return 0; }