Re: [PATCH net-next 4/7] net: phy: marvell: Add support for amplitude graph

2020-05-17 Thread Michal Kubecek
On Sun, May 17, 2020 at 10:51:50PM +0200, Andrew Lunn wrote: > > > +static int marvell_vct5_amplitude_distance(struct phy_device *phydev, > > > + int meters) > > > +{ > > > + int mV_pair0, mV_pair1, mV_pair2, mV_pair3; > > > + int distance; > > >

Re: [PATCH net-next 4/7] net: phy: marvell: Add support for amplitude graph

2020-05-17 Thread Chris Healy
On Sun, May 17, 2020 at 1:51 PM Andrew Lunn wrote: > > > > +static int marvell_vct5_amplitude_distance(struct phy_device *phydev, > > > + int meters) > > > +{ > > > + int mV_pair0, mV_pair1, mV_pair2, mV_pair3; > > > + int distance; > > > +

Re: [PATCH net-next 4/7] net: phy: marvell: Add support for amplitude graph

2020-05-17 Thread Andrew Lunn
> > +static int marvell_vct5_amplitude_distance(struct phy_device *phydev, > > + int meters) > > +{ > > + int mV_pair0, mV_pair1, mV_pair2, mV_pair3; > > + int distance; > > + u16 reg; > > + int err; > > + > > + distance = meter

Re: [PATCH net-next 4/7] net: phy: marvell: Add support for amplitude graph

2020-05-17 Thread Chris Healy
On Sun, May 17, 2020 at 12:59 PM Andrew Lunn wrote: > > The Marvell PHYs can measure the amplitude of the returned signal for > a given distance. Implement this option of the cable test > infrastructure. > > Signed-off-by: Andrew Lunn > --- > drivers/net/phy/marvell.c | 227 +

[PATCH net-next 4/7] net: phy: marvell: Add support for amplitude graph

2020-05-17 Thread Andrew Lunn
The Marvell PHYs can measure the amplitude of the returned signal for a given distance. Implement this option of the cable test infrastructure. Signed-off-by: Andrew Lunn --- drivers/net/phy/marvell.c | 227 +- 1 file changed, 226 insertions(+), 1 deletion(-)