mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-12 15:42:11 -05:00
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> |
||
|---|---|---|
| .. | ||
| dsa/rtl83xx | ||
| ethernet | ||
| phy | ||