]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: skip over ethernet-phy-package nodes 23591/head
authorManuel Stocker <mensi@mensi.ch>
Sat, 30 May 2026 18:46:18 +0000 (20:46 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 31 May 2026 11:07:38 +0000 (13:07 +0200)
commit267886991a71fc35d70e0b600581bf11a03c1dda
tree7538c8a32096f65f0fffd33e1b03b4aa89d98ac3
parentee6e8c88dcb9646360d4a1f8c40e3d436e8e92a2
realtek: mdio: skip over ethernet-phy-package nodes

When we look up the PHY for each switch port, we traverse to the parent
node to find the corresponding MDIO bus. This approach breaks down
when an explicit ethernet-phy-package is used to bundle multiple
PHYs in the same chip.

Signed-off-by: Manuel Stocker <mensi@mensi.ch>
Link: https://github.com/openwrt/openwrt/pull/23591
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c