realtek: rtl93xx: support SFPs with phys
authorBjørn Mork <bjorn@mork.no>
Thu, 6 Feb 2025 16:51:48 +0000 (17:51 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 25 Feb 2025 19:53:30 +0000 (20:53 +0100)
commit4457c1eee49e263dea8ae14b9e498b4d1e8e4503
treec35fa0961e785954b050fd700723b39c120791e7
parentccf54ca6732ed6b70d0039cf4c17d7c832aa5d06
realtek: rtl93xx: support SFPs with phys

This driver use "phy-handle" as a placeholder for mac configuration
data.  Such handles are therefore required for all ports - even those
connected directly to SFP slots and having a managed property set to
"in-band-status".

The DSA core will register these nodes as if they are real phys. This
prevents later attachment of pluggable phys with errors like

   sfp sfp-p8: sfp_add_phy failed: -EBUSY

Replace the virtual SFP slot handles with "pseudo-phy-handle" to keep
the driver logic as-is but hide the node from the DSA core.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/17950
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12.dts
target/linux/realtek/dts/rtl9303_xikestor_sks8300-8x.dts
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/common.c