1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
Markus Stockhausen 1a1b2d3d36 realtek: mdio: initialize RTL930x mac type control
For each port (or port group) the mdio bus needs to define the
PHY type that is attached to it. There are the following bit
values that need to be set in SMI_MAC_TYPE_CTRL.

- 0x0: 10G/1G Fiber (SerDes)
- 0x1: 10G/2G5 GPHY
- 0x2: FEPHY
- 0x3: GPHY

SerDes ports are out of scope of the mdio driver and are handled
by the PCS driver. So the corresponding bits are untouched. That
is not good as the register default is 0x3 for ports 0-23. To
make it simple: Without proper setup devices that have SerDes
driven fiber ports at address 0-23 do not poll in the right way.
Link detection is broken.

Fix this by initializing the register to zero. This way all ports
that are not setup by the mdio driver default to "SerDes". That
should be a reasonable assumption.

Fixes: b271735 ("realtek: mdio: Simplify RTL930x phy polling setup")
Reported-by: Joe Holden <jwh@zorins.us>
Suggested-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22032
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-15 14:45:52 +01:00
..
airoha kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
apm821xx Revert "apm821xx: rename pciex to pcie" 2026-02-10 14:54:23 +01:00
armsr
at91
ath79 kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
bcm27xx kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
bcm47xx
bcm53xx
bcm4908
bmips
d1 d1: Enable LED driver for D1 builds 2026-01-23 10:35:36 +01:00
econet econet: en7528: add PCIe and WiFi support 2026-02-15 01:12:52 +01:00
gemini gemini: add support for Raidsonic IB-4210-B 2026-02-13 10:41:03 +01:00
generic Revert "kernel: revert ip6_tunnel use skb_vlan_inet_prepare() in __ip6_tnl_rcv()" 2026-02-15 13:21:44 +01:00
imx
ipq40xx kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
ipq806x treewide: remove of_platform.h include 2026-02-04 00:50:06 +01:00
ixp4xx ixp4xx: select the GPIO keys input package 2026-01-28 18:59:47 +01:00
kirkwood
lantiq lantiq: xrx200: handle EPROBE_DEFER for MAC address 2026-02-07 15:27:11 +01:00
layerscape kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
loongarch64 loongarch64: set PREEMPT_NONE as default preemption model 2026-01-24 22:54:29 +01:00
malta malta: convert to Device macro image building 2026-02-11 00:08:34 +01:00
mediatek mediatek: add support for Keenetic/Netcraze (K/N)AP-630 2026-02-14 00:34:16 +01:00
microchipsw microchipsw: lan969x: include ip-bridge and dcb tools 2026-01-25 22:10:22 +01:00
mpc85xx kernel: reorder configuration options 2026-01-26 23:57:25 +01:00
mvebu mvebu: add depends for Turris MOX boards 2026-02-12 22:23:29 +01:00
mxs
octeon
omap
pistachio
qoriq
qualcommax kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
qualcommbe kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
ramips kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
realtek realtek: mdio: initialize RTL930x mac type control 2026-02-15 14:45:52 +01:00
rockchip kernel: bump 6.12 to 6.12.69 2026-02-07 17:20:33 +01:00
sifiveu
siflower treewide: remove of_platform.h include 2026-02-04 00:50:06 +01:00
starfive
stm32
sunxi kernel: reorder configuration options 2026-01-26 23:57:25 +01:00
tegra
uml
x86 x86: base-files add support for Sophos 210r3 and 230r2 2026-02-12 23:55:29 +01:00
zynq
Makefile