realtek: sfp: add mdio bus only for sfps with a phy
authorBjørn Mork <bjorn@mork.no>
Wed, 5 Feb 2025 07:37:51 +0000 (08:37 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 25 Feb 2025 19:53:30 +0000 (20:53 +0100)
commitccf54ca6732ed6b70d0039cf4c17d7c832aa5d06
treeb58e838877775a37427e666372934094c8441896
parent736229ba991ba69c6fdc7334353a43d9b1da1bdd
realtek: sfp: add mdio bus only for sfps with a phy

The SMBus patch broke the logic and caused the driver to always
register an mdio bus, regardless of the sfp.  Restore original
logic.

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/patches-6.6/714-net-phy-sfp-add-support-for-SMBus.patch