netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v1 1/2] net: phy: microchip: lan87xx: reinit PHY after cable test
@ 2024-07-03 13:28 Oleksij Rempel
  2024-07-03 13:28 ` [PATCH net v1 2/2] net: phy: microchip: lan87xx: do not report SQI if no link Oleksij Rempel
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Oleksij Rempel @ 2024-07-03 13:28 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

Reinit PHY after cable test, otherwise link can't be established on
tested port. This issue is reproducible on LAN9372 switches with
integrated 100BaseT1 PHYs.

Fixes: 788050256c411 ("net: phy: microchip_t1: add cable test support for lan87xx phy")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 drivers/net/phy/microchip_t1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/microchip_t1.c b/drivers/net/phy/microchip_t1.c
index a838b61cd844b..a35528497a576 100644
--- a/drivers/net/phy/microchip_t1.c
+++ b/drivers/net/phy/microchip_t1.c
@@ -748,7 +748,7 @@ static int lan87xx_cable_test_report(struct phy_device *phydev)
 	ethnl_cable_test_result(phydev, ETHTOOL_A_CABLE_PAIR_A,
 				lan87xx_cable_test_report_trans(detect));
 
-	return 0;
+	return phy_init_hw(phydev);
 }
 
 static int lan87xx_cable_test_get_status(struct phy_device *phydev,
-- 
2.39.2


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

end of thread, other threads:[~2024-07-04 14:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 13:28 [PATCH net v1 1/2] net: phy: microchip: lan87xx: reinit PHY after cable test Oleksij Rempel
2024-07-03 13:28 ` [PATCH net v1 2/2] net: phy: microchip: lan87xx: do not report SQI if no link Oleksij Rempel
2024-07-03 14:01   ` Michal Kubiak
2024-07-03 18:57   ` Andrew Lunn
2024-07-03 19:26     ` Woojung.Huh
2024-07-03 14:00 ` [PATCH net v1 1/2] net: phy: microchip: lan87xx: reinit PHY after cable test Michal Kubiak
2024-07-03 18:48 ` Andrew Lunn
2024-07-04 14:52 ` Florian Fainelli
2024-07-04 14:54 ` Florian Fainelli

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).