]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: revive dead ports after RTL8382M start 22087/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 11 Feb 2026 15:20:32 +0000 (16:20 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Mar 2026 01:02:29 +0000 (02:02 +0100)
commit0ff617f1f639245548d917c54b0cd61ebe20b516
tree72d1ea170df276c3d36ae68897d76976bc72f70d
parentc6e3984e05523a4caadc5a57fe6b7e5307fc21ab
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>
(cherry picked from commit 0839c5c9f21d6d0fe5c8c1a764371a5b1a3637ff)
Manually resolved merge conflicts.
Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22087
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c