net: ethernet: mtk_eth_soc: implement Clause 45 MDIO access
authorDaniel Golle <daniel@makrotopia.org>
Tue, 4 Jan 2022 12:07:46 +0000 (12:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 11:22:17 +0000 (11:22 +0000)
commite2e7f6e29c99a1c6afc0e0aa4b9ea80302d28720
tree7f5e3fd981fd9eb14bdc722d5aad7ca4ef05d7c9
parentc6af53f038aa32cec12e8a305ba07c7ef168f1b0
net: ethernet: mtk_eth_soc: implement Clause 45 MDIO access

Implement read and write access to IEEE 802.3 Clause 45 Ethernet
phy registers while making use of new mdiobus_c45_regad and
mdiobus_c45_devad helpers.

Tested on the Ubiquiti UniFi 6 LR access point featuring
MediaTek MT7622BV WiSoC with Aquantia AQR112C.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h