Skip to content

Commit de29f17

Browse files
oleremgregkh
authored andcommitted
net: phy: microchip: lan87xx: reinit PHY after cable test
[ Upstream commit 30f747b ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 72d39b8 commit de29f17

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
@@ -711,7 +711,7 @@ static int lan87xx_cable_test_report(struct phy_device *phydev)
711711
ethnl_cable_test_result(phydev, ETHTOOL_A_CABLE_PAIR_A,
712712
lan87xx_cable_test_report_trans(detect));
713713

714-
return 0;
714+
return phy_init_hw(phydev);
715715
}
716716

717717
static int lan87xx_cable_test_get_status(struct phy_device *phydev,

0 commit comments

Comments
 (0)