Skip to content

Commit

Permalink
net: phy: smsc: LAN8710/20: add PHY_RST_AFTER_CLK_EN flag
Browse files Browse the repository at this point in the history
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 <richard.leitner@skidata.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Leitner authored and David S. Miller committed Dec 13, 2017
1 parent a966849 commit 7f64e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/smsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 7f64e5b

Please sign in to comment.