mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v1 0/2] net: phy: microchip: LAN88xx reliability fixes
@ 2025-07-09 13:07 Oleksij Rempel
  2025-07-09 13:07 ` [PATCH net v1 1/2] net: phy: microchip: Use genphy_soft_reset() to purge stale LPA bits Oleksij Rempel
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Oleksij Rempel @ 2025-07-09 13:07 UTC (permalink / raw)
  To: David S. Miller, Andrew Lunn, Eric Dumazet, Florian Fainelli,
	Jakub Kicinski, Paolo Abeni, Woojung Huh, Arun Ramadoss,
	Heiner Kallweit, Russell King, Yuiko Oshino
  Cc: Oleksij Rempel, kernel, linux-kernel, netdev, UNGLinuxDriver,
	Phil Elwell

This patch series improves the reliability of the Microchip LAN88xx
PHYs, particularly in edge cases involving fixed link configurations or
forced speed modes.

Patch 1 assigns genphy_soft_reset() to the .soft_reset hook to ensure
that stale link partner advertisement (LPA) bits are properly cleared
during reconfiguration. Without this, outdated autonegotiation bits may
remain visible in some parallel detection cases.

Patch 2 restricts the 100 Mbps workaround (originally intended to handle
cable length switching) to only run when the link transitions to the
PHY_NOLINK state. This prevents repeated toggling that can confuse
autonegotiating link partners such as the Intel i350, leading to
unstable link cycles.

Both patches were tested on a LAN7850 (with integrated LAN88xx PHY)
against an Intel I350 NIC. The full test suite - autonegotiation, fixed
link, and parallel detection - passed successfully.

Oleksij Rempel (2):
  net: phy: microchip: Use genphy_soft_reset() to purge stale LPA bits
  net: phy: microchip: limit 100M workaround to link-down events on
    LAN88xx

 drivers/net/phy/microchip.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--
2.39.5


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

end of thread, other threads:[~2025-07-11  1:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-09 13:07 [PATCH net v1 0/2] net: phy: microchip: LAN88xx reliability fixes Oleksij Rempel
2025-07-09 13:07 ` [PATCH net v1 1/2] net: phy: microchip: Use genphy_soft_reset() to purge stale LPA bits Oleksij Rempel
2025-07-09 14:16   ` Andrew Lunn
2025-07-09 13:07 ` [PATCH net v1 2/2] net: phy: microchip: limit 100M workaround to link-down events on LAN88xx Oleksij Rempel
2025-07-09 14:17   ` Andrew Lunn
2025-07-11  1:20 ` [PATCH net v1 0/2] net: phy: microchip: LAN88xx reliability fixes 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

all inboxes | Powered by JetHome®