openwrt-mirror/target/linux/realtek/files-6.12/drivers/net
Markus Stockhausen 6e416149d7 realtek: phy: drop use of mdio package functions
Our phy driver can handle some multiport phys (e.g. RTL8218B
or RTL8214FC). To access arbitrary ports some package access
functions have been defined. These were implemented in the
mdio bus with poor knowledge about the phy/mdio dependencies.
So they add unneeded complexity to the bus and the phy driver
must access these external functions directly.

Provide a new helper get_package_phy() that can derive any
phy device in a package from a given phy of that package.
Make use of this local helper and cut the mdio dependency.

While we refactor several firmware patching functions rename
the loop variables to "port" to better indicate what we are
working on.

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>
2025-08-30 00:18:18 +02:00
..
dsa/rtl83xx realtek: rtl93xx: Trap LLDP management frames 2025-08-26 23:44:08 +02:00
ethernet realtek: Fix nvmem support for ethernet device 2025-08-28 21:07:57 +02:00
phy realtek: phy: drop use of mdio package functions 2025-08-30 00:18:18 +02:00