From: Russell King <[email protected]>
Date: Tue, 30 Jun 2020 11:04:40 +0100
> When support for short preambles was added, it incorrectly keyed its
> decision off state->speed instead of state->interface. state->speed
> is not guaranteed to be correct for in-band modes, which can lead to
> short preambles being unexpectedly disabled.
>
> Fix this by keying off the interface mode, which is the only way that
> mvneta can operate at 2.5Gbps.
>
> Fixes: da58a931f248 ("net: mvneta: Add support for 2500Mbps SGMII")
> Signed-off-by: Russell King <[email protected]>
Applied and queued up for -stable, thanks.