[net PATCH] net: stmmac: update priv->speed to SPEED_UNKNOWN when link down
Andrew Lunn
andrew at lunn.ch
Tue May 28 06:20:53 PDT 2024
On Tue, May 28, 2024 at 05:20:10PM +0800, Xiaolei Wang wrote:
> The CBS parameter can still be configured when the port is
> currently disconnected and link down. This is unreasonable.
This sounds like a generic problem. Can the core check the carrier
status and error out there? Maybe return a useful extack message.
If you do need to return an error code, ENETDOWN seems more
appropriate.
Andrew
More information about the linux-arm-kernel
mailing list