net: phy: marvell: Add support for amplitude graph
authorAndrew Lunn <andrew@lunn.ch>
Tue, 26 May 2020 22:21:40 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 06:22:20 +0000 (23:22 -0700)
commit0c9bcc1d2394acef2c6e89e652d984cc845c7bea
tree505d284c86d64dac6b363e5b1d1283c7726bc501
parent6b4a0fc106521e480c00b55a7ef38c89f02dc4e8
net: phy: marvell: Add support for amplitude graph

The Marvell PHYs can measure the amplitude of the returned signal for
a given distance. Implement this option of the cable test
infrastructure. When reporting the step, convert the distance into cm.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
v2:
Step based on the measurement resolution, and convert this to cm.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c