linux-stable/drivers/net/pcs
Serge Semin 361dd531a1 net: pcs: xpcs: Explicitly return error on caps validation
If an unsupported interface is passed to the PCS validation callback there
is no need in further link-modes calculations since the resultant array
will be initialized with zeros which will be perceived by the phylink
subsystem as error anyway (see phylink_validate_mac_and_pcs()). Instead
let's explicitly return the -EINVAL error to inform the caller about the
unsupported interface as it's done in the rest of the pcs_validate
callbacks.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-02-26 13:09:09 +00:00
..
Kconfig net: pcs: Drop the TSE PCS driver 2023-06-05 09:56:36 +01:00
Makefile net: pcs: xpcs: support to switch mode for Wangxun NICs 2023-08-25 07:42:58 +01:00
pcs-lynx.c net: fill in MODULE_DESCRIPTION()s for PCS drivers 2024-01-29 12:12:51 +00:00
pcs-mtk-lynxi.c net: fill in MODULE_DESCRIPTION()s for PCS drivers 2024-01-29 12:12:51 +00:00
pcs-rzn1-miic.c net: pcs: rzn1-miic: Convert to platform remove callback returning void 2023-12-05 19:51:09 -08:00
pcs-xpcs-nxp.c
pcs-xpcs-wx.c net: pcs: xpcs: adapt Wangxun NICs for SGMII mode 2023-08-25 07:42:59 +01:00
pcs-xpcs.c net: pcs: xpcs: Explicitly return error on caps validation 2024-02-26 13:09:09 +00:00
pcs-xpcs.h net: pcs: xpcs: Add 2500BASE-X case in get state for XPCS drivers 2023-10-27 15:59:44 -07:00