net: remove explicit phylink_generic_validate() references
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 4 Nov 2022 17:13:01 +0000 (17:13 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Nov 2022 01:54:57 +0000 (17:54 -0800)
commite1f4ecab19338ec7079830e8700e4869f991fd45
treedee0de4ecf0658ac62ff6d14ba0b025c6d329eb8
parent7ea8104d9e3d5984ce9dba08fde0b849b88007ee
net: remove explicit phylink_generic_validate() references

Virtually all conventional network drivers are now converted to use
phylink_generic_validate() - only DSA drivers and fman_memac remain,
so lets remove the necessity for network drivers to explicitly set
this member, and default to phylink_generic_validate() when unset.
This is possible as .validate must currently be set.

Any remaining instances that have not been addressed by this patch can
be fixed up later.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/E1or0FZ-001tRa-DI@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
21 files changed:
drivers/net/ethernet/altera/altera_tse_main.c
drivers/net/ethernet/atheros/ag71xx.c
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/fman/fman_dtsec.c
drivers/net/ethernet/freescale/fman/fman_tgec.c
drivers/net/ethernet/marvell/mvneta.c
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
drivers/net/ethernet/marvell/prestera/prestera_main.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/microchip/lan966x/lan966x_phylink.c
drivers/net/ethernet/microchip/sparx5/sparx5_phylink.c
drivers/net/ethernet/mscc/ocelot_net.c
drivers/net/ethernet/renesas/rswitch.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/phy/phylink.c
drivers/net/usb/asix_devices.c
include/linux/phylink.h