From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Jean Delvare <jdelvare@suse.de>, <netdev@vger.kernel.org>
Cc: Grant Likely <grant.likely@linaro.org>, Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH] net: cadence: Add architecture dependencies
Date: Mon, 14 Apr 2014 14:59:53 +0200 [thread overview]
Message-ID: <534BDBC9.8000509@atmel.com> (raw)
In-Reply-To: <20140414141151.5ee5434d@endymion.delvare>
On 14/04/2014 14:11, Jean Delvare :
> 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>
> ---
> I'm not 100% certain I got the dependencies for MACB right, please let
> me know if I forgot something (or it can always be added later.)
>
> 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 13:38:09.308168512 +0200
> @@ -4,7 +4,7 @@
>
> config NET_CADENCE
> bool "Cadence devices"
> - depends on HAS_IOMEM
> + depends on HAS_IOMEM && (ARM || COMPILE_TEST)
This one is wrong: PLATFORM_AT32AP is not an ARM platform but an AVR32 one.
> 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
>
>
Well, do we really need the adding of these dependencies? I though that
we were moving toward the decreasing of dependency checks in Kconfig...
Bye,
--
Nicolas Ferre
next prev parent reply other threads:[~2014-04-14 12:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 12:11 [PATCH] net: cadence: Add architecture dependencies Jean Delvare
2014-04-14 12:59 ` Nicolas Ferre [this message]
2014-04-14 13:25 ` Jean Delvare
2014-04-14 16:54 ` David Miller
2014-04-14 17:14 ` Jean Delvare
2014-04-14 17:34 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=534BDBC9.8000509@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=grant.likely@linaro.org \
--cc=jdelvare@suse.de \
--cc=netdev@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).