1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/realtek
Jonas Jelonek 66880d12c3 realtek: pcs: avoid unneeded SerDes reconfiguration
Avoid to reconfigure a SerDes when it has been configured for a mode
before. This usually applies to switches which drive multiple ports on a
single SerDes. For those, the phylink subsystem triggers PCS
configuration everytime although it's a single SerDes. For example, on
switches with XSGMII-connected RTL8218D the particular SerDes is
configured eight times but only a single run is needed.

Add a proper check to pcs_config which checks the mode stored in the
SerDes instance against the requested mode. Other 'settings' should be
executed though, e.g. setting autoneg. While at it, drop the check if
there is a 'setup_serdes' implementation. It's just a driver-internal
interface and all variants implement this now.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21763
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-02-01 11:47:25 +01:00
..
base-files realtek: rtl930x: Add Hasivo s1100wp-8gt-se (excl. PoE) 2026-01-28 00:43:16 +01:00
dts realtek: dts: add LGS328C port 21 definition 2026-01-31 11:18:02 +01:00
files/firmware/rtl838x_phy realtek: phy: drop external RTL8218B firmware blob 2026-01-25 22:16:56 +01:00
files-6.12 realtek: pcs: avoid unneeded SerDes reconfiguration 2026-02-01 11:47:25 +01:00
image realtek: rtl930x: Add Hasivo s1100wp-8gt-se (excl. PoE) 2026-01-28 00:43:16 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.66 2026-01-20 01:15:32 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: phy: drop external RTL8218B firmware blob 2026-01-25 22:16:56 +01:00
rtl839x kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
rtl930x kernel: reorder configuration options 2026-01-26 23:57:25 +01:00
rtl930x_nand kernel: reorder configuration options 2026-01-26 23:57:25 +01:00
rtl931x kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
rtl931x_nand kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00