realtek: pcs: select OFF mode with no links on SerDes
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 2 Jan 2026 18:50:10 +0000 (18:50 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 Jan 2026 15:59:48 +0000 (16:59 +0100)
commitb63f68e409f2ec2ab04d84bf6bb4bcad3776d089
tree5d0410b92e3c038183ca5b9a5831544cb5a8a2b8
parent7cd3407fdef67e4922f73df327c97bb0a2c679e5
realtek: pcs: select OFF mode with no links on SerDes

Because the PCS driver keeps track of the number of registered links for
each SerDes now, we now know when there is no link on a SerDes. In this
case, determine to turn off the SerDes in the mode mapper.

Though the phylink subsystem shouldn't attempt to config something
different when no link/port references a Serdes, be on the safe side.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21365
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c