realtek: decouple MDIO and ethernet devices
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 2 May 2025 18:51:38 +0000 (14:51 -0400)
committerStijn Tintel <stijn@linux-ipv6.be>
Mon, 12 May 2025 13:09:19 +0000 (16:09 +0300)
commit55287c9fbe32d40cd439c877db8c0bff7384680d
tree64ca4971889ba2d724271bccce4afb681a62c7a5
parent47de87eb23c48315be208dad9995382208fad25f
realtek: decouple MDIO and ethernet devices

We are lucky to have a working realtek environment. But some things where mixed
heavily. To say it clear a bus is a bus and an ethernet is an ethernet. With
the new naming conventions and defines this becomes even more obvious.

Decouple it by moving the bus specific parts out of the ethernet device. To
make the code more readable rename bus_priv variables to priv and sort variable
definitions in inverse tree order (length descending) where it makes sense.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.c