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>
Fri, 19 Apr 2024 11:21:54 +0000 (14:21 +0300)
commit104720f70ee65a8a349ced6b795804a57a211803
treedaeb1f1fc774b3035b6c96cde2b932afc2df0c89
parent59b56f8d07b8cb2bd5586ed8719edb4f3f1d10f6
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