Re: [PATCH net-next v2] net: phy: at803x: add cable diagnostics support

From: David Miller
Date: Wed May 13 2020 - 15:51:21 EST


From: Michael Walle <michael@xxxxxxxx>
Date: Wed, 13 May 2020 18:12:52 +0200

> The AR8031/AR8033 and the AR8035 support cable diagnostics. Adding
> driver support is straightforward, so lets add it.
>
> The PHY just do one pair at a time, so we have to start the test four
> times. The cable_test_get_status() can block and therefore we can just
> busy poll the test completion and continue with the next pair until we
> are done.
> The time delta counter seems to run at 125MHz which just gives us a
> resolution of about 82.4cm per tick.
...
> Signed-off-by: Michael Walle <michael@xxxxxxxx>
> Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

This doesn't apply cleanly to net-next, please respin.