]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: revive dead ports after RTL8382M start 21956/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 11 Feb 2026 15:20:32 +0000 (16:20 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 12 Feb 2026 15:58:46 +0000 (16:58 +0100)
commit0839c5c9f21d6d0fe5c8c1a764371a5b1a3637ff
tree1b4a5b609a94c9e74b603da1ec690c80aaea766b
parent8bf37836d62f001562c78238f41f4d05a31d606a
realtek: pcs: revive dead ports after RTL8382M start

SerDes attached ports that are connected during switch
boot might not be able to transmit any data after SerDes
setup. Especially ports that passed traffic before (e.g.
for tftp initramfs boot) seem to be affected. Ports that
are connected later do not show this issue.

It turns out that the old SerDes setup never really worked
on RTL8382 and the pcs refactoring (with dynamic SerDes
start and stop) totally changed the order of network bringup
in contrast to Realtek SDK.

Fix this by restaring the switch queue whenever a SerDes
goes up for the first time.

Fixes: e956adf ("realtek: rtl838x: setup SDS in PCS driver")
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21956
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c