netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
@ 2014-12-12  9:21 Tobias Klauser
  2014-12-12  9:49 ` David Laight
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Tobias Klauser @ 2014-12-12  9:21 UTC (permalink / raw)
  To: netdev

This chip is present on older revisions of the DE2 development kit.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 drivers/net/ethernet/davicom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/davicom/Kconfig b/drivers/net/ethernet/davicom/Kconfig
index 316c5e5..7ec2d74 100644
--- a/drivers/net/ethernet/davicom/Kconfig
+++ b/drivers/net/ethernet/davicom/Kconfig
@@ -4,7 +4,7 @@
 
 config DM9000
 	tristate "DM9000 support"
-	depends on ARM || BLACKFIN || MIPS || COLDFIRE
+	depends on ARM || BLACKFIN || MIPS || COLDFIRE || NIOS2
 	select CRC32
 	select MII
 	---help---
-- 
2.2.0

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

* RE: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12  9:21 [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2 Tobias Klauser
@ 2014-12-12  9:49 ` David Laight
  2014-12-12  9:57   ` Tobias Klauser
  2014-12-12 11:28 ` Simon Horman
  2014-12-12 16:26 ` David Miller
  2 siblings, 1 reply; 9+ messages in thread
From: David Laight @ 2014-12-12  9:49 UTC (permalink / raw)
  To: 'Tobias Klauser', netdev@vger.kernel.org

From: Tobias Klauser
> This chip is present on older revisions of the DE2 development kit.

Doesn't that mean the selector should be DE2 not NIOS2.

NIOS2 is a cpu not a board and I think this is an external peripheral
not something implemented in the fpga itself.

	David

> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> ---
>  drivers/net/ethernet/davicom/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/davicom/Kconfig b/drivers/net/ethernet/davicom/Kconfig
> index 316c5e5..7ec2d74 100644
> --- a/drivers/net/ethernet/davicom/Kconfig
> +++ b/drivers/net/ethernet/davicom/Kconfig
> @@ -4,7 +4,7 @@
> 
>  config DM9000
>  	tristate "DM9000 support"
> -	depends on ARM || BLACKFIN || MIPS || COLDFIRE
> +	depends on ARM || BLACKFIN || MIPS || COLDFIRE || NIOS2
>  	select CRC32
>  	select MII
>  	---help---
> --
> 2.2.0
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12  9:49 ` David Laight
@ 2014-12-12  9:57   ` Tobias Klauser
  2014-12-12 10:08     ` David Laight
  0 siblings, 1 reply; 9+ messages in thread
From: Tobias Klauser @ 2014-12-12  9:57 UTC (permalink / raw)
  To: David Laight; +Cc: netdev@vger.kernel.org

On 2014-12-12 at 10:49:13 +0100, David Laight <David.Laight@ACULAB.COM> wrote:
> From: Tobias Klauser
> > This chip is present on older revisions of the DE2 development kit.
> 
> Doesn't that mean the selector should be DE2 not NIOS2.
> 
> NIOS2 is a cpu not a board and I think this is an external peripheral
> not something implemented in the fpga itself.

You're of course right, but since nios2 relies on device tree there is
no notion of a specific board at compile time.

Moreover, the chip might be used on other boards (I personally know of
at least one) based on the nios2 softcore.

Cheers
Tobias

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

* RE: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12  9:57   ` Tobias Klauser
@ 2014-12-12 10:08     ` David Laight
  2014-12-12 10:17       ` Tobias Klauser
  0 siblings, 1 reply; 9+ messages in thread
From: David Laight @ 2014-12-12 10:08 UTC (permalink / raw)
  To: 'Tobias Klauser'; +Cc: netdev@vger.kernel.org

From: Tobias Klauser
> On 2014-12-12 at 10:49:13 +0100, David Laight <David.Laight@ACULAB.COM> wrote:
> > From: Tobias Klauser
> > > This chip is present on older revisions of the DE2 development kit.
> >
> > Doesn't that mean the selector should be DE2 not NIOS2.
> >
> > NIOS2 is a cpu not a board and I think this is an external peripheral
> > not something implemented in the fpga itself.
> 
> You're of course right, but since nios2 relies on device tree there is
> no notion of a specific board at compile time.
> 
> Moreover, the chip might be used on other boards (I personally know of
> at least one) based on the nios2 softcore.

And I've got several boards on my desk that have Altera fpgas and
could conceivably run linux, none of which have that chip.

Given the typical memory size constraints of such systems I can't
actually imagine anyone wanting to run anything other than a
specific cut-down kernel with a similarly cut-down userspace.

With actual hardware you might want any PCIe device (since the
fpga can be a PCIe host).
So whereas you might want almost any device, you probably want
almost none of them.

So trying to build a 'one size fits all' kernel is completely doomed.

	David

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

* Re: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12 10:08     ` David Laight
@ 2014-12-12 10:17       ` Tobias Klauser
  0 siblings, 0 replies; 9+ messages in thread
From: Tobias Klauser @ 2014-12-12 10:17 UTC (permalink / raw)
  To: David Laight; +Cc: netdev@vger.kernel.org

On 2014-12-12 at 11:08:03 +0100, David Laight <David.Laight@ACULAB.COM> wrote:
> From: Tobias Klauser
> > On 2014-12-12 at 10:49:13 +0100, David Laight <David.Laight@ACULAB.COM> wrote:
> > > From: Tobias Klauser
> > > > This chip is present on older revisions of the DE2 development kit.
> > >
> > > Doesn't that mean the selector should be DE2 not NIOS2.
> > >
> > > NIOS2 is a cpu not a board and I think this is an external peripheral
> > > not something implemented in the fpga itself.
> > 
> > You're of course right, but since nios2 relies on device tree there is
> > no notion of a specific board at compile time.
> > 
> > Moreover, the chip might be used on other boards (I personally know of
> > at least one) based on the nios2 softcore.
> 
> And I've got several boards on my desk that have Altera fpgas and
> could conceivably run linux, none of which have that chip.
> 
> Given the typical memory size constraints of such systems I can't
> actually imagine anyone wanting to run anything other than a
> specific cut-down kernel with a similarly cut-down userspace.
> 
> With actual hardware you might want any PCIe device (since the
> fpga can be a PCIe host).
> So whereas you might want almost any device, you probably want
> almost none of them.
> 
> So trying to build a 'one size fits all' kernel is completely doomed.

I completely agree. However I don't see how this has anything to do with
this patch, as it only allows to select the driver but doesn't do so by
default.

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

* Re: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12  9:21 [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2 Tobias Klauser
  2014-12-12  9:49 ` David Laight
@ 2014-12-12 11:28 ` Simon Horman
  2014-12-12 12:40   ` Tobias Klauser
  2014-12-12 16:26 ` David Miller
  2 siblings, 1 reply; 9+ messages in thread
From: Simon Horman @ 2014-12-12 11:28 UTC (permalink / raw)
  To: Tobias Klauser; +Cc: netdev

On Fri, Dec 12, 2014 at 10:21:11AM +0100, Tobias Klauser wrote:
> This chip is present on older revisions of the DE2 development kit.
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

I wonder if || COMPILE_TEST should also be added to allow extra build
coverage. Is there a specific reason it won't compile more widely?

Likewise for your smsc patch.

> ---
>  drivers/net/ethernet/davicom/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/davicom/Kconfig b/drivers/net/ethernet/davicom/Kconfig
> index 316c5e5..7ec2d74 100644
> --- a/drivers/net/ethernet/davicom/Kconfig
> +++ b/drivers/net/ethernet/davicom/Kconfig
> @@ -4,7 +4,7 @@
>  
>  config DM9000
>  	tristate "DM9000 support"
> -	depends on ARM || BLACKFIN || MIPS || COLDFIRE
> +	depends on ARM || BLACKFIN || MIPS || COLDFIRE || NIOS2
>  	select CRC32
>  	select MII
>  	---help---
> -- 
> 2.2.0
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12 11:28 ` Simon Horman
@ 2014-12-12 12:40   ` Tobias Klauser
  2014-12-12 13:58     ` Simon Horman
  0 siblings, 1 reply; 9+ messages in thread
From: Tobias Klauser @ 2014-12-12 12:40 UTC (permalink / raw)
  To: Simon Horman; +Cc: netdev

On 2014-12-12 at 12:28:42 +0100, Simon Horman <horms@verge.net.au> wrote:
> On Fri, Dec 12, 2014 at 10:21:11AM +0100, Tobias Klauser wrote:
> > This chip is present on older revisions of the DE2 development kit.
> > 
> > Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> 
> I wonder if || COMPILE_TEST should also be added to allow extra build
> coverage. Is there a specific reason it won't compile more widely?
> 
> Likewise for your smsc patch.

Good point. I don't think there's a reason for it not being compiled
more widely. Should I update my patches accordingly or send a separate
patch?

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

* Re: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12 12:40   ` Tobias Klauser
@ 2014-12-12 13:58     ` Simon Horman
  0 siblings, 0 replies; 9+ messages in thread
From: Simon Horman @ 2014-12-12 13:58 UTC (permalink / raw)
  To: Tobias Klauser; +Cc: netdev

On Fri, Dec 12, 2014 at 01:40:15PM +0100, Tobias Klauser wrote:
> On 2014-12-12 at 12:28:42 +0100, Simon Horman <horms@verge.net.au> wrote:
> > On Fri, Dec 12, 2014 at 10:21:11AM +0100, Tobias Klauser wrote:
> > > This chip is present on older revisions of the DE2 development kit.
> > > 
> > > Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> > 
> > I wonder if || COMPILE_TEST should also be added to allow extra build
> > coverage. Is there a specific reason it won't compile more widely?
> > 
> > Likewise for your smsc patch.
> 
> Good point. I don't think there's a reason for it not being compiled
> more widely. Should I update my patches accordingly or send a separate
> patch?

I'm not the maintainer but a follow-up patch or patches seems reasonable to me.

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

* Re: [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2
  2014-12-12  9:21 [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2 Tobias Klauser
  2014-12-12  9:49 ` David Laight
  2014-12-12 11:28 ` Simon Horman
@ 2014-12-12 16:26 ` David Miller
  2 siblings, 0 replies; 9+ messages in thread
From: David Miller @ 2014-12-12 16:26 UTC (permalink / raw)
  To: tklauser; +Cc: netdev

From: Tobias Klauser <tklauser@distanz.ch>
Date: Fri, 12 Dec 2014 10:21:11 +0100

> This chip is present on older revisions of the DE2 development kit.
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Applied.

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

end of thread, other threads:[~2014-12-12 16:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-12  9:21 [PATCH net] net: ethernet: davicom: Allow to select DM9000 for nios2 Tobias Klauser
2014-12-12  9:49 ` David Laight
2014-12-12  9:57   ` Tobias Klauser
2014-12-12 10:08     ` David Laight
2014-12-12 10:17       ` Tobias Klauser
2014-12-12 11:28 ` Simon Horman
2014-12-12 12:40   ` Tobias Klauser
2014-12-12 13:58     ` Simon Horman
2014-12-12 16:26 ` David Miller

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).