Skip to content

Commit 30f747b

Browse files
oleremkuba-moo
authored andcommitted
net: phy: microchip: lan87xx: reinit PHY after cable test
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: 7880502 ("net: phy: microchip_t1: add cable test support for lan87xx phy") Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Michal Kubiak <michal.kubiak@intel.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://patch.msgid.link/20240705084954.83048-1-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 83c36e7 commit 30f747b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/microchip_t1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static int lan87xx_cable_test_report(struct phy_device *phydev)
748748
ethnl_cable_test_result(phydev, ETHTOOL_A_CABLE_PAIR_A,
749749
lan87xx_cable_test_report_trans(detect));
750750

751-
return 0;
751+
return phy_init_hw(phydev);
752752
}
753753

754754
static int lan87xx_cable_test_get_status(struct phy_device *phydev,

0 commit comments

Comments
 (0)