]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mdio: realtek-rtl9300: Correctly handle ethernet-phy-package
authorManuel Stocker <mensi@mensi.ch>
Wed, 3 Jun 2026 17:59:24 +0000 (19:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Jun 2026 01:38:56 +0000 (18:38 -0700)
commit50b682a5aed70847e0746db7f723d22bef1801d1
tree1dc5903db852d474b644b8d835b280dbefcf9313
parent56b4864150970ba834367fe74b37ce250419347e
net: mdio: realtek-rtl9300: Correctly handle ethernet-phy-package

Realtek Otto switches usually make use of multiport PHYs (e.g. 8 port
1G RTL8218D or 4 port 2.5G RTL8224). The device tree can describe this
fact via an "ethernet-phy-package" node that resides between the bus
and the PHY node.

When looking up the device tree bus node via the chain port->phy->parent
the driver totally ignores the existence of a PHY package. Enhance the
lookup to take care of this feature.

Link: https://github.com/openwrt/openwrt/pull/23591
Signed-off-by: Manuel Stocker <mensi@mensi.ch>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://patch.msgid.link/20260603175924.123019-8-markus.stockhausen@gmx.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-realtek-rtl9300.c