openwrt/target/linux/realtek
Markus Stockhausen 09440d9858 realtek: 6.12: fix phy-mode for XGS1250-12 port 1-8
Per IEEE 802.3 definition we have:
- parallel XGMII for single 10GBit ONLY links
- serial USGMII for 8 port 1GBit links (not known by kernel)
- serial USXGMII: for single/multiple links with a total bandwidth of 10GBit

The phy-mode of the first eight ports of the XGS1250-12 have always been
defined as XGMII (without S). This came from a confusion with the similar
named Realtek proprietary XSGMII (with S) mode that is basically 10GB SGMII.
From the above definition this is wrong but worked until kernel 6.6. With
the upgrade to 6.12 there is an enforced capabilities check within
phy_caps_from_interface() and link validation fails with

lan1: validation of xgmii with support 62ef and advertisement 62c0 failed: -EINVAL
lan1: failed to connect to PHY: -EINVAL
lan1: error -22 setting up PHY for tree 0, switch 0, port 0

Switch the ports to USXGMII as the most flexible option. This might be no
final solution but at least it better describes the phy/mac link.

Fixes 5b8b382df9 ("realtek: Add support for ZxXEL XGS1250-12 Switch")
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18935
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-11 22:27:22 +02:00
..
base-files realtek: support EnGenius EWS2910P v3 2025-05-31 23:19:01 +02:00
dts realtek: 6.12: fix phy-mode for XGS1250-12 port 1-8 2025-06-11 22:27:22 +02:00
files/firmware/rtl838x_phy
files-6.6 realtek: 6.12: restore files-6.6 2025-06-11 22:27:21 +02:00
files-6.12 realtek: 6.12: adapt RTL9300 i2c bus & mux drivers 2025-06-11 22:27:22 +02:00
image realtek: support EnGenius EWS2910P v3 2025-05-31 23:19:01 +02:00
patches-6.6 realtek: 6.12: restore patches-6.6 2025-06-11 22:27:21 +02:00
patches-6.12 realtek: 6.12: adapt platform patch 2025-06-11 22:27:22 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: 6.12: restore config-6.6 2025-06-11 22:27:21 +02:00
rtl839x realtek: 6.12: restore config-6.6 2025-06-11 22:27:21 +02:00
rtl930x realtek: 6.12: restore config-6.6 2025-06-11 22:27:21 +02:00
rtl931x realtek: 6.12: restore config-6.6 2025-06-11 22:27:21 +02:00
Makefile realtek: trim default package selection 2025-01-04 20:35:48 +01:00