Re: [PATCH net-next v1] net: phy: tja11xx: add cable-test support

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


From: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
Date: Wed, 13 May 2020 14:34:40 +0200

> Add initial cable testing support.
> This PHY needs only 100usec for this test and it is recommended to run it
> before the link is up. For now, provide at least ethtool support, so it
> can be tested by more developers.
>
> This patch was tested with TJA1102 PHY with following results:
> - No cable, is detected as open
> - 1m cable, with no connected other end and detected as open
> - a 40m cable (out of spec, max lenght should be 15m) is detected as OK.
>
> Current patch do not provide polarity test support. This test would
> indicate not proper wire connection, where "+" wire of main phy is
> connected to the "-" wire of the link partner.
>
> Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>

Applied, thanks.