From: Richard Leitner Date: Mon, 11 Dec 2017 12:16:59 +0000 (+0100) Subject: net: phy: smsc: LAN8710/20: add PHY_RST_AFTER_CLK_EN flag X-Git-Tag: v5.15~9522^2~378^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f64e5b18ebb673cec2df334b8e0bda77df10376;p=platform%2Fkernel%2Flinux-starfive.git net: phy: smsc: LAN8710/20: add PHY_RST_AFTER_CLK_EN flag The Microchip/SMSC LAN8710/LAN8720 PHYs need (according to their datasheet [1]) a continuous REF_CLK when configured to "REF_CLK In Mode". Therefore set the PHY_RST_AFTER_CLK_EN flag for those PHYs to let the ETH driver reset them after the REF_CLK is enabled. [1] http://ww1.microchip.com/downloads/en/DeviceDoc/00002165B.pdf Signed-off-by: Richard Leitner Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index a1961ba..be399d6 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c @@ -312,7 +312,7 @@ static struct phy_driver smsc_phy_driver[] = { .name = "SMSC LAN8710/LAN8720", .features = PHY_BASIC_FEATURES, - .flags = PHY_HAS_INTERRUPT, + .flags = PHY_HAS_INTERRUPT | PHY_RST_AFTER_CLK_EN, .probe = smsc_phy_probe,