netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] net: cadence: Add architecture dependencies
@ 2014-04-14 13:38 Jean Delvare
  2014-04-15  4:08 ` David Miller
  2014-04-22 20:32 ` Mark Brown
  0 siblings, 2 replies; 14+ messages in thread
From: Jean Delvare @ 2014-04-14 13:38 UTC (permalink / raw)
  To: netdev; +Cc: Nicolas Ferre, Grant Likely, Rob Herring

The Cadence ethernet chipsets are only used on specific ARM
architectures. Add Kconfig dependencies so that drivers for these
chipsets are only buildable on the relevant architectures.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
---
Changes since v1:
 * Added missing dependency on AVR32, as reported by Nicolas Ferre.

 drivers/net/ethernet/cadence/Kconfig |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-3.15-rc1.orig/drivers/net/ethernet/cadence/Kconfig	2014-03-31 05:40:15.000000000 +0200
+++ linux-3.15-rc1/drivers/net/ethernet/cadence/Kconfig	2014-04-14 15:36:18.141242446 +0200
@@ -4,7 +4,7 @@
 
 config NET_CADENCE
 	bool "Cadence devices"
-	depends on HAS_IOMEM
+	depends on HAS_IOMEM && (ARM || AVR32 || COMPILE_TEST)
 	default y
 	---help---
 	  If you have a network (Ethernet) card belonging to this class, say Y.
@@ -22,7 +22,7 @@ if NET_CADENCE
 
 config ARM_AT91_ETHER
 	tristate "AT91RM9200 Ethernet support"
-	depends on HAS_DMA
+	depends on HAS_DMA && (ARCH_AT91RM9200 || COMPILE_TEST)
 	select MACB
 	---help---
 	  If you wish to compile a kernel for the AT91RM9200 and enable
@@ -30,7 +30,7 @@ config ARM_AT91_ETHER
 
 config MACB
 	tristate "Cadence MACB/GEM support"
-	depends on HAS_DMA
+	depends on HAS_DMA && (PLATFORM_AT32AP || ARCH_AT91 || ARCH_PICOXCELL || ARCH_ZYNQ || COMPILE_TEST)
 	select PHYLIB
 	---help---
 	  The Cadence MACB ethernet interface is found on many Atmel AT32 and


-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-04-23 14:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 13:38 [PATCH v2] net: cadence: Add architecture dependencies Jean Delvare
2014-04-15  4:08 ` David Miller
2014-04-22 20:32 ` Mark Brown
2014-04-23  7:16   ` Michal Simek
2014-04-23  7:40     ` Jean Delvare
2014-04-23  9:35       ` Michal Simek
2014-04-23 10:48         ` Jean Delvare
2014-04-23 11:14           ` Michal Simek
2014-04-23 11:34             ` Mark Brown
2014-04-23 13:16               ` Michal Simek
2014-04-23 13:27                 ` Jean Delvare
2014-04-23 14:23                 ` Mark Brown
2014-04-23 11:27           ` Mark Brown
2014-04-23 10:04       ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).