It's noticed that sometimes RTL8221B-VB-CG cannot be reset properly. Increase the polling timeout value to fix this issue. The generic phy reset function genphy_soft_reset() also uses 600ms as the timeout threshold. Signed-off-by: Shiji Yang --- drivers/net/phy/realtek/realtek_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c index 67ecf3d4a..9228b42c8 100644 --- a/drivers/net/phy/realtek/realtek_main.c +++ b/drivers/net/phy/realtek/realtek_main.c @@ -1509,7 +1509,7 @@ static int rtl822x_c45_soft_reset(struct phy_device *phydev) return phy_read_mmd_poll_timeout(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1, val, !(val & MDIO_CTRL1_RESET), - 5000, 100000, true); + 5000, 600000, true); } static int rtl822xb_c45_read_status(struct phy_device *phydev) -- 2.51.0