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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 12:28:36 +0000 (14:28 +0200)
commitfbc72b63520aa5078140578d39aac69447e0c205
tree5706677473c5404a985aa8456b7e19998452456d
parent480df96832f484060b4740164685f56a2fada450
net: dsa: b53: mmap: add phy ops

[ Upstream commit 45977e58ce65ed0459edc9a0466d9dfea09463f5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/b53/b53_mmap.c