net: Tighten more driver dependencies
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:44:14 +0000 (14:44 -0600)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 09:16:09 +0000 (11:16 +0200)
In this case, the mediatek network drivers cannot build outside of
ARCH_MEDIATEK or ARCH_MTMIPS, and so express this requirement in Kconfig
as well. In the case of DWC_ETH_XGMAC / DWC_ETH_XGMAC_SOCFPGA, the file
controlled by the DWC_ETH_XGMAC option references a socfpga-specific
array defined in the file controlled by DWC_ETH_XGMAC_SOCFPGA. Rework
these options in Kconfig to handle this dependency.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/net/Kconfig
drivers/net/mtk_eth/Kconfig

index c2ef9fb..8576b0c 100644 (file)
@@ -179,7 +179,7 @@ config CALXEDA_XGMAC
          machines.
 
 config DWC_ETH_XGMAC
-        bool "Synopsys DWC Ethernet XGMAC device support"
+        bool
        select PHYLIB
         help
           This driver supports the Synopsys Designware Ethernet XGMAC (10G
@@ -190,7 +190,8 @@ config DWC_ETH_XGMAC_SOCFPGA
        bool "Synopsys DWC Ethernet XGMAC device support for SOCFPGA"
        select REGMAP
        select SYSCON
-       depends on ARCH_SOCFPGA && DWC_ETH_XGMAC
+       select DWC_ETH_XGMAC
+       depends on ARCH_SOCFPGA
        default y if TARGET_SOCFPGA_AGILEX5
        help
          The Synopsys Designware Ethernet XGMAC IP block with specific
index e8cdf40..a2060b8 100644 (file)
@@ -1,6 +1,7 @@
 
 config MEDIATEK_ETH
        bool "MediaTek Ethernet GMAC Driver"
+       depends on ARCH_MEDIATEK || ARCH_MTMIPS
        select PHYLIB
        select DM_GPIO
        select DM_RESET