lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <TYRPR01MB13830B4914CFB007B74366AEDBCAFA@TYRPR01MB13830.jpnprd01.prod.outlook.com>
Date: Sat, 13 Dec 2025 23:21:30 +0800
From: Shiji Yang <yangshiji66@...look.com>
To: netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc: Andrew Lunn <andrew@...n.ch>,
	Heiner Kallweit <hkallweit1@...il.com>,
	Russell King <linux@...linux.org.uk>,
	"David S . Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>,
	Paolo Abeni <pabeni@...hat.com>,
	Shiji Yang <yangshiji66@...look.com>
Subject: [PATCH net-next] net: phy: realtek: increase rtl822x_c45_soft_reset() poll timeout

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 <yangshiji66@...look.com>
---
 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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ