]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fa5283ae3f2a767fe6064b02f89a8a27bfec5eb
tree7f5e3fd981fd9eb14bdc722d5aad7ca4ef05d7c9
parent1d3e9e4bdd44d417f5e277d60c2dcf020e99352c
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