net: dsa: b53: mmap: add phy ops
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 23 Mar 2023 19:48:41 +0000 (20:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Mar 2023 07:31:34 +0000 (08:31 +0100)
commit45977e58ce65ed0459edc9a0466d9dfea09463f5
tree64d557cd1522e309160c964c00630c24b8c87fe1
parentf2e9d083f768ec147da3e3e5209030d3c090c689
net: dsa: b53: mmap: add phy ops

Implement phy_read16() and phy_write16() ops for B53 MMAP to avoid accessing
B53_PORT_MII_PAGE registers which hangs the device.
This access should be done through the MDIO Mux bus controller.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_mmap.c