]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl931x: configure SerDes-backing MAC groups main master 22088/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 18 Feb 2026 20:18:21 +0000 (20:18 +0000)
committerRobert Marko <robimarko@gmail.com>
Sat, 21 Feb 2026 13:04:48 +0000 (14:04 +0100)
commit00ceb1ed1763f7479df6edf92ffada948f0e7d45
tree6fb0e2ab52b3f952ba01363969bf6361eb7c20f9
parent81b148fd380b0a3fa1b6da8cb0da9d79eabce352
realtek: pcs: rtl931x: configure SerDes-backing MAC groups

RTL931x organizes MACs into 12 groups (one per SerDes) that must be
explicitly enabled before link establishment. Without initialization,
link may fail or packets may be corrupted, especially in USXGMII/XSGMII
modes. This is the case for devices which lack initialization by the
bootloader.

Simply enable all MACs in all groups by writing 0xffffffff to the
registers. Unused MACs and reserved bits are harmless, avoiding complex
logic to always set only needed MACs.

This is placed in the PCS driver since the MAC groups are assigned per
SerDes and the DSA driver lacks SerDes awareness (on purpose)

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22088
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c