realtek: rtl839x: support rtl8214fc on rtl8393 realtek/rtl8393_rtl8214fc
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 18 Apr 2024 14:53:58 +0000 (17:53 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Mon, 12 Aug 2024 21:07:00 +0000 (00:07 +0300)
commit14d9e4be7ad2d0bd88540283ba9609c0a2e6b5f3
treef575f98819937e2f3d9e942a49434c91b4a99f81
parent9dbd45c18702cdd55fcfb0f71dc505afa1ff64d6
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, just skip rtl8380_configure_rtl8214fc on RTL8393. This seems to
make both combo and SFP-only ports on the Edgecore ECS4100-12PH work
properly.

However, this will probably break ports connected to RTL8218B PHYs at
addresses 24 or higher, as both RTL8214FC and RTL8218B have the same PHY
id, and rtl8214fc_match_phy_device matches devices with that ID and PHY
addr above 24 (e.g D-Link DGS-1210-52).
target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c