From 4ea41c200c563267311a8c5b48f85c400d5feccc Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 18 Apr 2024 17:53:58 +0300 Subject: [PATCH] realtek: rtl839x: support rtl8214fc on rtl8393 Returning ENODEV in rtl8214fc_phy_probe when an RTL8393 SoC is detected makes it impossible to use an external RTL8214FC PHY on the SoC. Instead, --- target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c index 1397278643..6b8738f2b9 100644 --- a/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c +++ b/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c @@ -3684,6 +3684,9 @@ static int rtl8214fc_phy_probe(struct phy_device *phydev) devm_phy_package_join(dev, phydev, addr & (~7), sizeof(struct rtl83xx_shared_private)); + if (soc_info.id == 0x8393) + return phy_sfp_probe(phydev, &rtl8214fc_sfp_ops); + if (!(addr % 8)) { struct rtl83xx_shared_private *shared = phydev->shared->priv; shared->name = "RTL8214FC"; -- 2.30.2