]> git.ipfire.org Git - thirdparty/openwrt.git/commit
kernel: rtl8261n: add post-reset MDIO stabilization delay 23076/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 24 Apr 2026 09:07:34 +0000 (11:07 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 25 Apr 2026 17:56:08 +0000 (19:56 +0200)
commit51992c87c8d1cee54cffa3eacf7f15e6afd48b1c
tree49b6939f7a142034b71470a229995aeafb4cf6ec
parentdd5bd85a1ffbef075eb32c35e63d6e6eb1277982
kernel: rtl8261n: add post-reset MDIO stabilization delay

After the RTL8261N asserts a reset, the MDIO bus becomes temporarily
unavailable during the chip's reinitialization sequence. Any subsequent
read or write issued before the PHY has stabilized will fail.

Add a 30ms delay after triggering the reset to ensure the chip is reachable
via MDIO before resuming communication.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/23076
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phy.c