net: phy: marvell: Add functions to read PHY's extended registers
authorLukasz Majewski <lukma@denx.de>
Mon, 30 Oct 2017 21:57:53 +0000 (22:57 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jan 2018 18:05:16 +0000 (12:05 -0600)
commitce27eb9b40594857a60cbff4763bc6a12e1118d3
treee133a948e4a6b32b74fc2cab6b0a7e86e8650a85
parent765a159cf5efe8b0b4f9f8ae415697c5fcbc82ef
net: phy: marvell: Add functions to read PHY's extended registers

This commit allows extended Marvell registers to be read with:

foo > mdio rx FEC 3.10
Reading from bus FEC
PHY at address 0:
3.16 - 0x1063
foo > mdio wx FEC 3.10 0x1011

The above code changes the way ETH connector LEDs blink.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: York Sun <york.sun@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/marvell.c