]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: simplify RTL8214FC handling
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 19 Aug 2025 10:46:41 +0000 (06:46 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 29 Aug 2025 22:18:18 +0000 (00:18 +0200)
commitfa1b362ae9d1a832a6e1acb6b67d72fcb79fe4b5
treeb5eba2020d831c174dd393b06689fb4b42892a9c
parenta1043fda8b77e096d225e43a3c6671d385d46176
realtek: simplify RTL8214FC handling

Now that we have a get_base_phy() function a lot code of the RTL8214FC
handling can be cleaned up. To name a few:

- use phy_read/phy_write instead of mdiobus functions or the even worse
  phy_package_..._paged() helpers
- replace messages with phydev_info()
- remove if/else statements around copper/fibre handling

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