realtek: phy: proper RTL8218B, RTL8214FC, RTL8214FB detection
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 22 Sep 2024 17:19:22 +0000 (13:19 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 27 Oct 2024 21:26:25 +0000 (22:26 +0100)
commit597f87ebf5872a92d6b6a3b5e79537a641d2995c
treece64d67a644bc2da7c3fce1e5316b0d43a8ca5a0
parentd607dc2a06fbadfd7e3d21c872a3f290dc704211
realtek: phy: proper RTL8218B, RTL8214FC, RTL8214FB detection

Three PHYs share the same identifier. Until now we simply assume
the type depending of the bus address it is attached to. Make it
better and check the chip mode register instead.

The kernel will either detect by id/mask or by match_phy_device().
Remove the unneeded settings.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/16457
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.h