regmap: Rework regmap_mdio_c45_{read|write} for new C45 API.
authorAndrew Lunn <andrew@lunn.ch>
Mon, 16 Jan 2023 11:15:09 +0000 (12:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Jan 2023 13:16:09 +0000 (13:16 +0000)
commit7b3c4c370c09313e22b555e79167e73d233611d1
tree15b28c5ece5bc789521bf5d5f768f94c80ecadbd
parent1b929c02afd37871d5afb9d498426f83432e71c2
regmap: Rework regmap_mdio_c45_{read|write} for new C45 API.

The MDIO subsystem is getting rid of MII_ADDR_C45 and thus also
encoding associated encoding of the C45 device address and register
address into one value. regmap-mdio also uses this encoding for the
C45 bus.

Move to the new C45 helpers for MDIO access and provide regmap-mdio
helper macros.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20230116111509.4086236-1-michael@walle.cc
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-mdio.c
include/linux/regmap.h