]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: simplify RTL8218B/RTL8214Fx detection 19372/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 11 Jul 2025 10:58:59 +0000 (06:58 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 18 Jul 2025 21:36:51 +0000 (23:36 +0200)
commit926ffa10b40855889149c4a78d01cdeda2b821db
tree3a4cb08dd01d7feea64f03f1a6f343abbb672fe2
parent4ff02b46b9379bb19747636cdb6984b026ac62a9
realtek: simplify RTL8218B/RTL8214Fx detection

The current implementation has several issues:

- it uses the hacky phy_port* macros
- it uses SoC dependent raw pages
- it disables/enables SoC dependent polling

Get rid of these dependencies and access the mdio bus the normal way.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19372
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c