Re: [PATCH net-next] net: phy: adin: allow control of Fast Link Down
From: Andrew Lunn
Date: Tue Nov 28 2023 - 15:23:55 EST
On Tue, Nov 28, 2023 at 09:18:00PM +0100, Andrew Lunn wrote:
> On Mon, Nov 27, 2023 at 04:31:39PM +0100, Vincent Whitchurch wrote:
> > Add support to allow Fast Link Down (aka "Enhanced link detection") to
> > be controlled via the ETHTOOL_PHY_FAST_LINK_DOWN tunable. These PHYs
> > have this feature enabled by default.
> >
> > Signed-off-by: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx>
>
> Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
>
> Is there anything in the datasheet about how fast it is? It would be
> nice to return the number of milliseconds, if its known.
Datasheet says:
If enhanced link detection is enabled (it is enabled by default), the
ADIN1300 typically reacts to a break in the cable within 10 μs and
indicates link down via the LINK_ST pin. If enhanced link detection
is not enabled, the ADIN1300 follows the IEEE standard, and in
100BASE-TX, it can take more than either 350 ms or 750 ms in
1000BASE-T, depending if the PHY is 1000BASE-T master or 1000BASE-T
slave.
10uS is closer to 0ms and 1ms, so ETHTOOL_PHY_FAST_LINK_DOWN_ON == 0
is right.
Andrew