net: mdio: add mdiobus_c45_read/write_nested helpers
authorAndrew Lunn <andrew@lunn.ch>
Mon, 9 Jan 2023 15:30:50 +0000 (16:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jan 2023 23:53:37 +0000 (15:53 -0800)
commit1d914d51f03cbbbda3c34c675e49392ce60c1c33
treefe480b85fa29500e714f698548649e7850c6c379
parent8d03ad1ab0b052f1f992a52fb80a31b7540b61f6
net: mdio: add mdiobus_c45_read/write_nested helpers

Some DSA devices pass through PHY access to the MDIO bus the switch is
on. Add C45 versions of the current C22 helpers for nested accesses to
MDIO busses, so that C22 and C45 can be separated in these DSA
drivers.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio_bus.c
include/linux/mdio.h