realtek: switch to use generic MDIO accessor functions
authorDaniel Golle <daniel@makrotopia.org>
Fri, 4 Feb 2022 12:28:37 +0000 (12:28 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 17 Feb 2022 15:21:47 +0000 (15:21 +0000)
commitb53202a8c3f728c348c5376e5b5fb36af7c37744
tree0127ff821379b3fce4b5d3419280fa6ade978acf
parentaf93bf6129d812937eeffc183878d60c6b700b7e
realtek: switch to use generic MDIO accessor functions

Instead of directly calling SoC-specific functions in order to access
(paged) MII registers or MMD registers, create infrastructure to allow
using the generic phy_*, phy_*_paged and phy_*_mmd functions.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.h
target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.h
target/linux/realtek/patches-5.10/800-net-mdio-support-hardware-assisted-indirect-access.patch [new file with mode: 0644]