cmd: mdio: Switch to generic helpers when accessing the registers
authorCarlo Caione <ccaione@baylibre.com>
Fri, 8 Feb 2019 17:25:08 +0000 (17:25 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 May 2019 19:51:55 +0000 (14:51 -0500)
commite55047ec51a662c12ed53ff543ec7cdf158b2137
tree467b34b21a33f0d936713a543f2c84497b0f5c02
parent4c29dc1863e4f739ec2f496352935fd37c123553
cmd: mdio: Switch to generic helpers when accessing the registers

Switch to use the generic helpers to access the MMD registers so that we
can used the same command also for C45 PHYs, C22 PHYs with direct and
indirect access and PHYs implementing a custom way to access the
registers.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
cmd/mdio.c