1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/realtek
Markus Stockhausen 4c4b698a9c 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>
(cherry picked from commit 4cfd1c4501)
Link: https://github.com/openwrt/openwrt/pull/18755
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-06-08 21:19:31 +02:00
..
base-files realtek: Split Zyxel GS1900-8 into v1 and v2 2025-02-22 12:32:35 +01:00
dts realtek: add PoE enable line to Netgear GS310TP 2025-02-22 12:33:08 +01:00
files/firmware/rtl838x_phy
files-6.6 realtek: proper RTL8214FC fibre/copper detection 2025-06-08 21:19:31 +02:00
image realtek: HPE 1920-48G-PoE: allow fan speed control 2025-02-22 12:32:35 +01:00
patches-6.6 generic: net: phy: sfp: backport some FS copper SFP fixes 2025-05-20 20:49:01 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: add missing symbol 2025-05-20 20:49:01 +01:00
rtl839x realtek: add missing symbol 2025-05-20 20:49:01 +01:00
rtl930x realtek: add missing symbol 2025-05-20 20:49:01 +01:00
rtl931x realtek: drop old RTL8231 driver 2025-02-22 12:32:35 +01:00
Makefile realtek: trim default package selection 2025-01-04 20:40:02 +01:00