]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag
authorMartin Fuzzey <martin.fuzzey@flowbird.group>
Wed, 23 Oct 2019 09:44:24 +0000 (11:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Oct 2019 04:44:44 +0000 (21:44 -0700)
commit26ded69365033449e93ecf5f899b29d907a43b22
tree1c6e3bfb52d93fc25ea06992920c6ae17330f8e8
parent9165ac6685b9e1a80d34126bb3d543a1f02413e2
net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag

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 <martin.fuzzey@flowbird.group>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c