realtek: dsa: allow to drop phy-handle on switch ports
authorJonas Jelonek <[email protected]>
Sat, 11 Oct 2025 21:36:25 +0000 (21:36 +0000)
committerRobert Marko <[email protected]>
Sun, 2 Nov 2025 15:32:09 +0000 (16:32 +0100)
commited240e3cc295231c172931269bdfcbf4babe3471
tree44560e929062d804e9596092ae2ce65621e8615b
parentc447ba0a8387a0e55954387083a3c011749a96f0
realtek: dsa: allow to drop phy-handle on switch ports

When Realtek SerDes is completely handled by PCS, it is not treated as
a regular PHY anymore. Thus, we should be able to drop the currently
used pseudo-PHYs and phy-handles for ports which just use the SerDes as
PCS but have no PHY attached.

Allow to drop the phy-handle from switch port definitions if there is a
pcs-handle defined by relaxing several checks in the DSA driver.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20577
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c