linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net v2 0/1] net: usb: smsc95xx: fix external PHY reset
@ 2022-11-15 11:44 Alexandru Tachici
  2022-11-15 11:44 ` [net v2 1/1] " Alexandru Tachici
  2022-11-17  9:50 ` [net v2 0/1] " patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandru Tachici @ 2022-11-15 11:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: andrew, linux, davem, edumazet, kuba, pabeni, netdev,
	steve.glendinning, UNGLinuxDriver, andre.edich, linux-usb

An external PHY needs settling time after power up or reset.
In the bind() function an mdio bus is registered. If at this point
the external PHY is still initialising, no valid PHY ID will be
read and on phy_find_first() the bind() function will fail.

If an external PHY is present, wait the maximum time specified
in 802.3 45.2.7.1.1.

Alexandru Tachici (1):
  net: usb: smsc95xx: fix external PHY reset

Changelog v1 -> v2:
  - fixed typo in commit message
  - added reset() callback to the mii_bus
  - moved fsleep() call to smsc95xx_mdiobus_reset()
  - moved is_internal_phy bool in struct smsc95xx_priv
  - added an explicit PHY_RST_ command to PM_CTRL in smsc95xx_mdiobus_reset()

 drivers/net/usb/smsc95xx.c | 46 ++++++++++++++++++++++++++++++++++----
 1 file changed, 42 insertions(+), 4 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-17  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 11:44 [net v2 0/1] net: usb: smsc95xx: fix external PHY reset Alexandru Tachici
2022-11-15 11:44 ` [net v2 1/1] " Alexandru Tachici
2022-11-16 13:46   ` Andrew Lunn
2022-11-17  9:50 ` [net v2 0/1] " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).