]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa: rtl931x: configure phy ability source 21351/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 1 Jan 2026 20:11:17 +0000 (20:11 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 2 Jan 2026 20:35:28 +0000 (21:35 +0100)
commite58192934151ca6500f6bc81b580239d6204d864
tree457d3b02b4f86bc2ed7c12e28a79826f437d5b43
parente782341848618aefff4dbbaae3689cd28fe43d86
realtek: dsa: rtl931x: configure phy ability source

The MAC can get PHY abilities, link status, etc. via different ways. In
RTL931x, the corresponding register needs to be setup properly. By
default, all ports use out-of-band MDIO polling to retrieve that
information. Thus, PHY-backed ports usually work with the default
setting.

For SFP ports, there is no MDIO polling available. Instead, the SerDes
ability bus needs to be used to retrieve the link information.

So far, the bootloader (e.g. U-boot) had to properly initialize that
setting. Instead of relying on that, do that properly during MAC setup.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21351
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c