# Pastebin fQ17tn1J From 0500ea1f184d45e150bd116947ab28e4ff3f7474 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Mon, 4 Nov 2024 17:40:58 +0100 Subject: [PATCH] ethernet: only select CONFIG_MII where needed A number of drivers select MII either for historic reasons or because they copied from another driver that does use it. Remove the select from the drivers that don't actually need it. Signed-off-by: Arnd Bergmann diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 5a02f740e682..a0c265348253 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig @@ -152,7 +152,6 @@ source "drivers/net/ethernet/oki-semi/Kconfig" config ETHOC tristate "OpenCores 10/100 Mbps Ethernet MAC support" depends on HAS_IOMEM && HAS_DMA - select MII select PHYLIB select CRC32 select BITREVERSE diff --git a/drivers/net/ethernet/allwinner/Kconfig b/drivers/net/ethernet/allwinner/Kconfig index 3e81059f8693..f7cc379b1d01 100644 --- a/drivers/net/ethernet/allwinner/Kconfig +++ b/drivers/net/ethernet/allwinner/Kconfig @@ -25,7 +25,6 @@ config SUN4I_EMAC depends on ARCH_SUNXI depends on OF select CRC32 - select MII select PHYLIB select MDIO_SUN4I help diff --git a/drivers/net/ethernet/arc/Kconfig b/drivers/net/ethernet/arc/Kconfig index 0d400a7d8d91..040d76e782b9 100644 --- a/drivers/net/ethernet/arc/Kconfig +++ b/drivers/net/ethernet/arc/Kconfig @@ -19,7 +19,6 @@ if NET_VENDOR_ARC config ARC_EMAC_CORE tristate depends on ARC || ARCH_ROCKCHIP || COMPILE_TEST - select MII select PHYLIB select CRC32 diff --git a/drivers/net/ethernet/atheros/Kconfig b/drivers/net/ethernet/atheros/Kconfig index bec5cdf8d1da..9544ae84681d 100644 --- a/drivers/net/ethernet/atheros/Kconfig +++ b/drivers/net/ethernet/atheros/Kconfig @@ -30,7 +30,6 @@ config ATL2 tristate "Atheros L2 Fast Ethernet support" depends on PCI select CRC32 - select MII help This driver supports the Atheros L2 fast ethernet adapter. @@ -41,7 +40,6 @@ config ATL1 tristate "Atheros/Attansic L1 Gigabit Ethernet support" depends on PCI select CRC32 - select MII help This driver supports the Atheros/Attansic L1 gigabit ethernet adapter. @@ -53,7 +51,6 @@ config ATL1E tristate "Atheros L1E Gigabit Ethernet support" depends on PCI select CRC32 - select MII help This driver supports the Atheros L1E gigabit ethernet adapter. @@ -64,7 +61,6 @@ config ATL1C tristate "Atheros L1C Gigabit Ethernet support" depends on PCI select CRC32 - select MII help This driver supports the Atheros L1C gigabit ethernet adapter. diff --git a/drivers/net/ethernet/broadcom/Kconfig b/drivers/net/ethernet/broadcom/Kconfig index eeec8bf17cf4..64bff6596b4e 100644 --- a/drivers/net/ethernet/broadcom/Kconfig +++ b/drivers/net/ethernet/broadcom/Kconfig @@ -23,7 +23,6 @@ config B44 tristate "Broadcom 440x/47xx ethernet support" depends on SSB_POSSIBLE && HAS_DMA select SSB - select MII select PHYLIB help If you have a network (Ethernet) controller of this type, say Y @@ -62,7 +61,6 @@ config BCM4908_ENET config BCM63XX_ENET tristate "Broadcom 63xx internal mac support" depends on BCM63XX - select MII select PHYLIB help This driver supports the ethernet MACs in the Broadcom 63xx diff --git a/drivers/net/ethernet/freescale/fs_enet/Kconfig b/drivers/net/ethernet/freescale/fs_enet/Kconfig index 57013bf14d7c..d29f3ac2c016 100644 --- a/drivers/net/ethernet/freescale/fs_enet/Kconfig +++ b/drivers/net/ethernet/freescale/fs_enet/Kconfig @@ -2,7 +2,6 @@ config FS_ENET tristate "Freescale Ethernet Driver" depends on NET_VENDOR_FREESCALE && (CPM1 || CPM2 || PPC_MPC512x) - select MII select PHYLINK config FS_ENET_MPC5121_FEC diff --git a/drivers/net/ethernet/rdc/Kconfig b/drivers/net/ethernet/rdc/Kconfig index 6884c7864bb9..9ee57ec91dc7 100644 --- a/drivers/net/ethernet/rdc/Kconfig +++ b/drivers/net/ethernet/rdc/Kconfig @@ -21,7 +21,6 @@ config R6040 tristate "RDC R6040 Fast Ethernet Adapter support" depends on PCI select CRC32 - select MII select PHYLIB help This is a driver for the R6040 Fast Ethernet MACs found in the diff --git a/drivers/net/ethernet/renesas/Kconfig b/drivers/net/ethernet/renesas/Kconfig index 9b7559c88bee..639867837c9a 100644 --- a/drivers/net/ethernet/renesas/Kconfig +++ b/drivers/net/ethernet/renesas/Kconfig @@ -20,7 +20,6 @@ config SH_ETH tristate "Renesas SuperH Ethernet support" depends on ARCH_RENESAS || SUPERH || COMPILE_TEST select CRC32 - select MII select MDIO_BITBANG select PHYLIB help @@ -31,7 +30,6 @@ config RAVB depends on ARCH_RENESAS || COMPILE_TEST depends on PTP_1588_CLOCK_OPTIONAL select CRC32 - select MII select MDIO_BITBANG select PAGE_POOL select PHYLIB @@ -44,7 +42,6 @@ config RENESAS_ETHER_SWITCH depends on ARCH_RENESAS || COMPILE_TEST depends on PTP_1588_CLOCK select CRC32 - select MII select PHYLINK select RENESAS_GEN4_PTP help @@ -54,7 +51,6 @@ config RENESAS_GEN4_PTP tristate "Renesas R-Car Gen4 gPTP support" if COMPILE_TEST depends on PTP_1588_CLOCK select CRC32 - select MII select PHYLIB help Renesas R-Car Gen4 gPTP device driver. diff --git a/drivers/net/ethernet/smsc/Kconfig b/drivers/net/ethernet/smsc/Kconfig index 13ce9086a9ca..081fafea7327 100644 --- a/drivers/net/ethernet/smsc/Kconfig +++ b/drivers/net/ethernet/smsc/Kconfig @@ -79,7 +79,6 @@ config SMSC911X tristate "SMSC LAN911x/LAN921x families embedded ethernet support" depends on HAS_IOMEM select CRC32 - select MII select PHYLIB help Say Y here if you want support for SMSC LAN911x and LAN921x families diff --git a/drivers/net/ethernet/socionext/Kconfig b/drivers/net/ethernet/socionext/Kconfig index 48298389851d..192d525d8fb0 100644 --- a/drivers/net/ethernet/socionext/Kconfig +++ b/drivers/net/ethernet/socionext/Kconfig @@ -27,7 +27,6 @@ config SNI_NETSEC depends on (ARCH_SYNQUACER || COMPILE_TEST) && OF select PHYLIB select PAGE_POOL - select MII help Enable to add support for the SocioNext NetSec Gigabit Ethernet controller + PHY, as found on the Synquacer SC2A11 SoC diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index 05cc07b8f48c..a539d0c37222 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig @@ -3,7 +3,6 @@ config STMMAC_ETH tristate "STMicroelectronics Multi-Gigabit Ethernet driver" depends on HAS_IOMEM && HAS_DMA depends on PTP_1588_CLOCK_OPTIONAL - select MII select PCS_XPCS select PAGE_POOL select PHYLINK @@ -44,7 +43,6 @@ if STMMAC_PLATFORM config DWMAC_DWC_QOS_ETH tristate "Support for snps,dwc-qos-ethernet.txt DT binding." select CRC32 - select MII depends on OF && HAS_DMA help Support for chips using the snps,dwc-qos-ethernet.txt DT binding.