openwrt-mirror/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx
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
..
common.c realtek: use consistent definition in DTS for SFP(+) ports 2025-08-07 13:47:27 +02:00
debugfs.c
dsa.c realtek: dsa: enhance pcs_get_state() for RTL93xx 2025-08-07 15:50:01 +02:00
Kconfig
Makefile
qos.c
rtl83xx.h realtek: RTL839x: reorganize mdio functions and SerDes register layout 2025-08-04 10:43:17 +02:00
rtl838x.c realtek: mdio: RTL838x: move functions over to bus 2025-07-26 15:46:31 +02:00
rtl838x.h realtek: move and clean up CHIP_INFO register definitions 2025-08-06 13:41:51 +02:00
rtl839x.c realtek: RTL839x: reorganize mdio functions and SerDes register layout 2025-08-04 10:43:17 +02:00
rtl930x.c realtek: fix ethtool stats for RTL839x and RTL930x 2025-07-27 16:46:19 +02:00
rtl931x.c realtek: rtl931x: Fix printing of port matrix 2025-07-31 21:59:24 +02:00
tc.c