openwrt/target/linux
Jonas Jelonek d8b1a54c78 realtek: pcs: add dedicated enum for SerDes modes
The Realtek SerDes mode capabilities do not map 1:1 to the
PHY_INTERFACE_MODE_* modes used in the kernel and passed to the PCS.
For example, some PHY chips use the proprietary XSGMII mode for which
there isn't an equivalent in the kernel, or HSGMII.

In the past, this led to problems and confusion using kernel's XGMII to
handle the XSGMII mode, and needed a downstream patch for HSGMII. They
have been solved/worked around for now, but XSGMII is currently not
implemented at all. And who knows what might come in the future.

To make our life easier, introduce a dedicated internal representation
of SerDes modes which differs from kernel's PHY_INTERFACE_MODE_*. This
allows us to map "external" modes to different internal modes as needed
instead of carrying the PHY_INTERFACE_MODE_* through the whole SerDes
configuration code. The PCS driver needs to map PHY_INTERFACE_MODE_* to
RTPCS_SDS_MODE_* in pcs_config, and the latter should be used as the
only one.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit a4d6e10bf2)
2025-12-16 13:38:13 +01:00
..
airoha generic: move reserved_mem backports patch to generic 2025-12-08 00:37:05 +01:00
apm821xx
armsr
at91 treewide: fix coccinelle checks 2025-12-02 23:32:42 +01:00
ath79 ath79: meraki_mr1[26]: userspace cal to nvmem 2025-12-09 01:21:03 +01:00
bcm27xx bcm27xx: fix patch wrong CRLF line-ending 2025-12-11 00:57:57 +01:00
bcm47xx bcm47xx: Fix lzma-loader compilation 2025-12-04 21:41:40 +01:00
bcm53xx bcm53xx: image: sync targets names with DT compatible 2025-12-06 18:55:49 +01:00
bcm4908
bmips bmips: b53: enable bcm63268 internal PHYs 2025-12-09 15:12:43 +01:00
d1
econet econet: fix wrong board name for Zyxel PMG5617GA 2025-12-08 17:30:27 +01:00
gemini
generic kernel: rtl836x: remove legacy platform_data support 2025-12-15 09:32:10 +01:00
imx
ipq40xx ipq40xx: convert Orbi led labels to function/color 2025-12-16 10:30:26 +01:00
ipq806x Revert "treewide: fixup ath10k nodes" 2025-11-29 17:56:11 +01:00
ixp4xx
kirkwood
lantiq lantiq: tplink_tdw89x0: use led-sources for wifi LED 2025-12-06 19:30:22 +01:00
layerscape
loongarch64 loongarch64: Disable strict alignment to fix BPF program failures 2025-12-10 19:10:30 +01:00
malta
mediatek mediatek: fix IPv4 address missing on interface in failsafe mode for cudy ap3000-v1 2025-12-16 00:29:13 +01:00
microchipsw microchipsw: lan969x: add Microchip EV23X71A 2025-12-03 12:13:17 +01:00
mpc85xx mpc85xx: add support for Watchguard Firebox T10-W, T15(-W) 2025-12-11 00:57:55 +01:00
mvebu treewide: Fix const compile errors 2025-12-03 23:28:43 +01:00
mxs
octeon
omap
pistachio kernel: remove uboot,env hack 2025-11-30 20:18:08 +01:00
qoriq
qualcommax qualcommax: ipq807x: use ascii-env driver for Linksys MX4200v1 2025-12-16 10:24:17 +01:00
qualcommbe qualcommbe: update ipq9574 PCS driver 2025-11-30 16:51:12 +01:00
ramips ramips: mt7621.mk: fix alphabetical ordering some Cudy devices 2025-12-09 00:31:07 +01:00
realtek realtek: pcs: add dedicated enum for SerDes modes 2025-12-16 13:38:13 +01:00
rockchip rockchip: drop sdmmc speed limitation for RK3576/RK3588 2025-12-06 00:56:32 +01:00
sifiveu
siflower
starfive
stm32
sunxi sunxi: image: sync target profiles names with DT compatible 2025-12-16 01:46:49 +01:00
tegra
uml
x86 kernel: bump 6.12 to 6.12.60 2025-12-02 22:51:19 +01:00
zynq
Makefile