openwrt/target/linux/realtek
Harshal Gohel 9ccfca3303 realtek: dsa: enhance pcs_get_state() for RTL93xx
Currently the SerDes driven SFP ports give strange ethtool readings
on RTL93xx devices. Especially duplex and speed are shown even if
no link is up and running. That leads to confusion because the MAC
reports arbitrary values.

Enhance the readout by refactoring the pcs_get_state() function.
Calculate speed/duplex/pause only if link is detected.

Suggested-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19575
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-08-07 15:50:01 +02:00
..
base-files realtek: add support for TP-Link TL-ST1008F v2.0 2025-06-16 13:30:52 +02:00
dts realtek: use consistent definition in DTS for SFP(+) ports 2025-08-07 13:47:27 +02:00
files/firmware/rtl838x_phy
files-6.12 realtek: dsa: enhance pcs_get_state() for RTL93xx 2025-08-07 15:50:01 +02:00
image realtek: rtl930x: convert Hasivo S1100W to lzma only. 2025-08-06 15:22:52 +02:00
patches-6.12 realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl839x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl930x realtek: rtl930x: enable SMP 2025-08-04 16:01:49 +02:00
rtl931x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
Makefile realtek: switch to 6.12 as default 2025-06-22 16:38:11 +02:00