Skip to content

Commit

Permalink
net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag
Browse files Browse the repository at this point in the history
The LAN8740, like the 8720, also requires a reset after enabling clock.
The datasheet [1] 3.8.5.1 says:
	"During a Hardware reset, an external clock must be supplied
	to the XTAL1/CLKIN signal."

I have observed this issue on a custom i.MX6 based board with
the LAN8740A.

[1] http://ww1.microchip.com/downloads/en/DeviceDoc/8740a.pdf

Signed-off-by: Martin Fuzzey <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Martin Fuzzey authored and davem330 committed Oct 24, 2019
1 parent 5566744 commit 76db2d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/phy/smsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ static struct phy_driver smsc_phy_driver[] = {
.name = "SMSC LAN8740",

/* PHY_BASIC_FEATURES */
.flags = PHY_RST_AFTER_CLK_EN,

.probe = smsc_phy_probe,

Expand Down

0 comments on commit 76db2d4

Please sign in to comment.