]> git.baikalelectronics.ru Git - kernel.git/commit
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 09:24:03 +0000 (11:24 +0200)
commitd381033c22225f65fd1283b21c1a7ae2095f5ee4
treeecce1ca0b62c3ca33dcb8348c3210a1f97db3d6a
parent41e1da0607f7104ee7034a9e286b0660c0259386
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