[PATCH net-next 13/14] net: stmmac: provide PCS initialisation hook
Andrew Lunn
andrew at lunn.ch
Wed Oct 15 14:11:22 PDT 2025
> + /* Unimplemented PCS init (as indicated by stmmac_do_callback()
> + * perversely returning -EINVAL) is non-fatal.
> + */
> + ret = stmmac_mac_pcs_init(priv);
> + if (ret != -EINVAL)
> + return ret;
Oh, that's ugly.
Looking back at
commit 42de047d60bc5d87e369c36115058b9dacc5683c
Author: Jose Abreu <Jose.Abreu at synopsys.com>
Date: Mon Apr 16 16:08:12 2018 +0100
net: stmmac: Switch stmmac_desc_ops to generic HW Interface Helpers
which added this, i don't actually see a user of the returned EINVAL.
EOPNOTSUPP would of been better. But changing it now will need quite a
bit of review work :-(
Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Andrew
More information about the linux-arm-kernel
mailing list