Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e020797b authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller
Browse files

net: Remove depends on HAS_DMA in case of platform dependency



Remove dependencies on HAS_DMA where a Kconfig symbol depends on another
symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST".
In most cases this other symbol is an architecture or platform specific
symbol, or PCI.

Generic symbols and drivers without platform dependencies keep their
dependencies on HAS_DMA, to prevent compiling subsystems or drivers that
cannot work anyway.

This simplifies the dependencies, and allows to improve compile-testing.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 935c5e3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ config SUNLANCE

config AMD_XGBE
	tristate "AMD 10GbE Ethernet driver"
	depends on ((OF_NET && OF_ADDRESS) || ACPI || PCI) && HAS_IOMEM && HAS_DMA
	depends on ((OF_NET && OF_ADDRESS) || ACPI || PCI) && HAS_IOMEM
	depends on X86 || ARM64 || COMPILE_TEST
	select BITREVERSE
	select CRC32
+0 −1
Original line number Diff line number Diff line
config NET_XGENE_V2
	tristate "APM X-Gene SoC Ethernet-v2 Driver"
	depends on HAS_DMA
	depends on ARCH_XGENE || COMPILE_TEST
	help
	  This is the Ethernet driver for the on-chip ethernet interface
+0 −1
Original line number Diff line number Diff line
config NET_XGENE
	tristate "APM X-Gene SoC Ethernet Driver"
	depends on HAS_DMA
	depends on ARCH_XGENE || COMPILE_TEST
	select PHYLIB
	select MDIO_XGENE
+4 −2
Original line number Diff line number Diff line
@@ -24,7 +24,8 @@ config ARC_EMAC_CORE
config ARC_EMAC
	tristate "ARC EMAC support"
	select ARC_EMAC_CORE
	depends on OF_IRQ && OF_NET && HAS_DMA && (ARC || COMPILE_TEST)
	depends on OF_IRQ && OF_NET
	depends on ARC || COMPILE_TEST
	---help---
	  On some legacy ARC (Synopsys) FPGA boards such as ARCAngel4/ML50x
	  non-standard on-chip ethernet device ARC EMAC 10/100 is used.
@@ -33,7 +34,8 @@ config ARC_EMAC
config EMAC_ROCKCHIP
	tristate "Rockchip EMAC support"
	select ARC_EMAC_CORE
	depends on OF_IRQ && OF_NET && REGULATOR && HAS_DMA && (ARCH_ROCKCHIP || COMPILE_TEST)
	depends on OF_IRQ && OF_NET && REGULATOR
	depends on ARCH_ROCKCHIP || COMPILE_TEST
	---help---
	  Support for Rockchip RK3036/RK3066/RK3188 EMAC ethernet controllers.
	  This selects Rockchip SoC glue layer support for the
+0 −2
Original line number Diff line number Diff line
@@ -157,7 +157,6 @@ config BGMAC
config BGMAC_BCMA
	tristate "Broadcom iProc GBit BCMA support"
	depends on BCMA && BCMA_HOST_SOC
	depends on HAS_DMA
	depends on BCM47XX || ARCH_BCM_5301X || COMPILE_TEST
	select BGMAC
	select PHYLIB
@@ -170,7 +169,6 @@ config BGMAC_BCMA

config BGMAC_PLATFORM
	tristate "Broadcom iProc GBit platform support"
	depends on HAS_DMA
	depends on ARCH_BCM_IPROC || COMPILE_TEST
	depends on OF
	select BGMAC
Loading