]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: carve out mdio bus from ethernet driver 19942/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 3 Sep 2025 08:16:31 +0000 (04:16 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 7 Sep 2025 09:37:59 +0000 (11:37 +0200)
commitfcd3ce6954d6ac28199aef1aab78c88741323b83
tree659201fc075949dc8d829e9ad9592ea57a6377bf
parent3fae46d5cc723ae680d0ba721368a3677b6ae799
realtek: carve out mdio bus from ethernet driver

So much code was distributed between phy/ethernet/dsa drivers. A lot
was already cleand up before. With this step the mdio bus gets its
own space and is no longer hidden inside the ethernet driver.

This commit is mostly a copy/paste that includes only minor changes.

- define prefixes are renamed to RTMDIO
- The driver is totally self contained (does not rely on SoC include)
- The DTS structure (mdio node below ethernet node) was kept
- The driver is added to the kernel config of all subtargets.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19942
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.h
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c [new file with mode: 0644]
target/linux/realtek/patches-6.12/806-add-mdio-driver.patch [new file with mode: 0644]
target/linux/realtek/rtl838x/config-6.12
target/linux/realtek/rtl839x/config-6.12
target/linux/realtek/rtl930x/config-6.12
target/linux/realtek/rtl930x_nand/config-6.12
target/linux/realtek/rtl931x/config-6.12
target/linux/realtek/rtl931x_nand/config-6.12