openwrt-mirror/target/linux/realtek
Markus Stockhausen 4cfd1c4501 realtek: proper RTL8214FC fibre/copper detection
The RTL8214FC currently uses generic PHY functions. That makes it look like a copper
device. Switching to/from fibre works fortunately but the autonegotiation handling
still works on MII_LPA (PHY register 5) as if a copper link is used. Fix that by

- advertising a superset of TP/FIBRE features
- using clause 37 functions when on fibre

Additionally enhance the code of the driver to assist further development.

- log the speed of the inserted module to detect wrongly inserted 10gbase-r modules
- order phy driver functions alphabetically (keep match/name on top)
- remove genphy_loopback as the kernel uses it if not provided

Remark! The driver internally uses PORT_MII for the TP port. Align with that and
report MII to ethtool instead of TP. Other drivers do the same and it can be
changed in the future if needed.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18724
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-05-09 10:24:16 +02:00
..
base-files realtek: Split Zyxel GS1900-8 into v1 and v2 2025-01-25 15:07:13 +01:00
dts realtek: fix cpu port link type 2025-05-06 10:56:58 +02:00
files/firmware/rtl838x_phy
files-6.6 realtek: proper RTL8214FC fibre/copper detection 2025-05-09 10:24:16 +02:00
image realtek: add support for D-Link DGS-1210-26 2025-04-07 12:22:00 +02:00
patches-6.6 kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: add missing symbol 2025-05-03 23:23:10 +03:00
rtl839x realtek: add missing symbol 2025-05-03 23:23:10 +03:00
rtl930x realtek: add missing symbol 2025-05-03 23:23:10 +03:00
rtl931x kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
Makefile realtek: trim default package selection 2025-01-04 20:35:48 +01:00