]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl931x: soften early exit for USXGMII 21365/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 2 Jan 2026 17:49:02 +0000 (17:49 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 Jan 2026 15:59:49 +0000 (16:59 +0100)
commit2055a4df785dcce2d3a9cd58be1e1346e51a1721
tree0482bfb7de579441b81c025137e869f3985833d5
parentb63f68e409f2ec2ab04d84bf6bb4bcad3776d089
realtek: pcs: rtl931x: soften early exit for USXGMII

Now that the PCS driver keeps track of how many links are registered per
SerDes, we can also decide which real hardware mode to use when USXGMII
is set. While there is still no proper setup for 10G-QXGMII or XSGMII,
the existing USXGMII 10G-SXGMII setup seems to work properly.

Soften the condition when to exit early so that single 10G port USXGMII
can be setup properly.

Fixes: c18476d0c581 ("realtek: RTL931x: disable USXGMII SerDes setup")
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21365
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c