Netdev List
 help / color / mirror / Atom feed
* [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems
@ 2009-06-06  0:37 Mike Frysinger
  2009-06-06  0:37 ` [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Mike Frysinger @ 2009-06-06  0:37 UTC (permalink / raw)
  To: netdev; +Cc: uclinux-dist-devel

The smsc911x driver works fine on Blackfin systems, so add it to the arch
list in the Kconfig.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
side note ... does it even make sense to have this arch list in the first
place ?  the driver works with any platform who declares proper platform
resources ...

 drivers/net/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 214a92d..962b261 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -1000,7 +1000,7 @@ config SMC911X
 
 config SMSC911X
 	tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
-	depends on ARM || SUPERH
+	depends on ARM || SUPERH || BLACKFIN
 	select CRC32
 	select MII
 	select PHYLIB
-- 
1.6.3.1


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

* [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage
  2009-06-06  0:37 [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems Mike Frysinger
@ 2009-06-06  0:37 ` Mike Frysinger
  2009-06-08  7:10   ` David Miller
       [not found]   ` <1244248640-22699-2-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
  2009-06-08  7:10 ` [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems David Miller
  2009-06-08 19:36 ` Steve.Glendinning
  2 siblings, 2 replies; 17+ messages in thread
From: Mike Frysinger @ 2009-06-06  0:37 UTC (permalink / raw)
  To: netdev; +Cc: uclinux-dist-devel

The smsc911x_drv_remove() function is declared with __devexit, so the
assignment to the driver structure needs __devexit_p() wrappings to prevent
build failure when hotplug is disabled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/net/smsc911x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
index eb7db03..d3bf943 100644
--- a/drivers/net/smsc911x.c
+++ b/drivers/net/smsc911x.c
@@ -2098,7 +2098,7 @@ out_0:
 
 static struct platform_driver smsc911x_driver = {
 	.probe = smsc911x_drv_probe,
-	.remove = smsc911x_drv_remove,
+	.remove = __devexit_p(smsc911x_drv_remove),
 	.driver = {
 		.name = SMSC_CHIPNAME,
 	},
-- 
1.6.3.1


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

* Re: [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems
  2009-06-06  0:37 [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems Mike Frysinger
  2009-06-06  0:37 ` [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage Mike Frysinger
@ 2009-06-08  7:10 ` David Miller
  2009-06-08 19:36 ` Steve.Glendinning
  2 siblings, 0 replies; 17+ messages in thread
From: David Miller @ 2009-06-08  7:10 UTC (permalink / raw)
  To: vapier; +Cc: netdev, uclinux-dist-devel

From: Mike Frysinger <vapier@gentoo.org>
Date: Fri,  5 Jun 2009 20:37:19 -0400

> The smsc911x driver works fine on Blackfin systems, so add it to the arch
> list in the Kconfig.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Applied.

> side note ... does it even make sense to have this arch list in the first
> place ?  the driver works with any platform who declares proper platform
> resources ...

I agree, we should probably get rid of the conditional arch list.

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

* Re: [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage
  2009-06-06  0:37 ` [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage Mike Frysinger
@ 2009-06-08  7:10   ` David Miller
       [not found]   ` <1244248640-22699-2-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
  1 sibling, 0 replies; 17+ messages in thread
From: David Miller @ 2009-06-08  7:10 UTC (permalink / raw)
  To: vapier; +Cc: netdev, uclinux-dist-devel

From: Mike Frysinger <vapier@gentoo.org>
Date: Fri,  5 Jun 2009 20:37:20 -0400

> The smsc911x_drv_remove() function is declared with __devexit, so the
> assignment to the driver structure needs __devexit_p() wrappings to prevent
> build failure when hotplug is disabled.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Applied.

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

* Re: [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems
  2009-06-06  0:37 [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems Mike Frysinger
  2009-06-06  0:37 ` [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage Mike Frysinger
  2009-06-08  7:10 ` [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems David Miller
@ 2009-06-08 19:36 ` Steve.Glendinning
  2009-06-08 21:29   ` [Uclinux-dist-devel] [PATCH 1/2] netdev: smsc911x: allowbuilding " Hennerich, Michael
  2009-06-08 21:37   ` [PATCH 1/2] netdev: smsc911x: allow building " David Miller
  2 siblings, 2 replies; 17+ messages in thread
From: Steve.Glendinning @ 2009-06-08 19:36 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: netdev, uclinux-dist-devel, Ian.Saturley

> The smsc911x driver works fine on Blackfin systems, so add it to the 
arch
> list in the Kconfig.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Acked-by: Steve Glendinning <steve.glendinning@smsc.com>

> side note ... does it even make sense to have this arch list in the 
first
> place ?  the driver works with any platform who declares proper platform
> resources ...

You're right, there's nothing "special" about ARM | SUPERH other than they 
cover all the in-tree platforms using smsc911x.  The aim was to hide this 
option from menuconfig on x86 etc, where this device is extremely unlikely 
to be found.  Maybe there's a better way of doing this?

Steve

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

* Re: [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage
       [not found]   ` <1244248640-22699-2-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
@ 2009-06-08 19:37     ` Steve.Glendinning-sdUf+H5yV5I
  0 siblings, 0 replies; 17+ messages in thread
From: Steve.Glendinning-sdUf+H5yV5I @ 2009-06-08 19:37 UTC (permalink / raw)
  To: Mike Frysinger
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA, Ian.Saturley-sdUf+H5yV5I,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

> The smsc911x_drv_remove() function is declared with __devexit, so the
> assignment to the driver structure needs __devexit_p() wrappings to 
prevent
> build failure when hotplug is disabled.
> 
> Signed-off-by: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>

Acked-by: Steve Glendinning <steve.glendinning-sdUf+H5yV5I@public.gmane.org>

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

* RE: [Uclinux-dist-devel] [PATCH 1/2] netdev: smsc911x: allowbuilding on Blackfin systems
  2009-06-08 19:36 ` Steve.Glendinning
@ 2009-06-08 21:29   ` Hennerich, Michael
  2009-06-08 21:37   ` [PATCH 1/2] netdev: smsc911x: allow building " David Miller
  1 sibling, 0 replies; 17+ messages in thread
From: Hennerich, Michael @ 2009-06-08 21:29 UTC (permalink / raw)
  To: Steve.Glendinning, Mike Frysinger
  Cc: netdev, Ian.Saturley, uclinux-dist-devel

if EMBEDDED ?



>From: uclinux-dist-devel-bounces@blackfin.uclinux.org
[mailto:uclinux-dist-devel-
>bounces@blackfin.uclinux.org] On Behalf Of Steve.Glendinning@smsc.com
>> The smsc911x driver works fine on Blackfin systems, so add it to the
>arch
>> list in the Kconfig.
>>
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
>Acked-by: Steve Glendinning <steve.glendinning@smsc.com>
>
>> side note ... does it even make sense to have this arch list in the
>first
>> place ?  the driver works with any platform who declares proper
platform
>> resources ...
>
>You're right, there's nothing "special" about ARM | SUPERH other than
they
>cover all the in-tree platforms using smsc911x.  The aim was to hide
this
>option from menuconfig on x86 etc, where this device is extremely
unlikely
>to be found.  Maybe there's a better way of doing this?
>
>Steve

if EMBEDDED ?

-Michael


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

* Re: [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems
  2009-06-08 19:36 ` Steve.Glendinning
  2009-06-08 21:29   ` [Uclinux-dist-devel] [PATCH 1/2] netdev: smsc911x: allowbuilding " Hennerich, Michael
@ 2009-06-08 21:37   ` David Miller
  2009-06-08 21:50     ` [Uclinux-dist-devel] " Mike Frysinger
  1 sibling, 1 reply; 17+ messages in thread
From: David Miller @ 2009-06-08 21:37 UTC (permalink / raw)
  To: Steve.Glendinning; +Cc: vapier, netdev, uclinux-dist-devel, Ian.Saturley

From: Steve.Glendinning@smsc.com
Date: Mon, 8 Jun 2009 20:36:24 +0100

> You're right, there's nothing "special" about ARM | SUPERH other than they 
> cover all the in-tree platforms using smsc911x.  The aim was to hide this 
> option from menuconfig on x86 etc, where this device is extremely unlikely 
> to be found.  Maybe there's a better way of doing this?

I sincerely doubt keeping this out of x86's menuconfig so important,
really.

So many devices are available for powerpc and sparc64 that will never
appear there, however those drivers now get build validated on those
platforms and it's therefore a net-win.

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

* Re: [Uclinux-dist-devel] [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems
  2009-06-08 21:37   ` [PATCH 1/2] netdev: smsc911x: allow building " David Miller
@ 2009-06-08 21:50     ` Mike Frysinger
       [not found]       ` <8bd0f97a0906081450s6b471d30p56d86e31ba708730-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Mike Frysinger @ 2009-06-08 21:50 UTC (permalink / raw)
  To: David Miller; +Cc: Steve.Glendinning, netdev, Ian.Saturley, uclinux-dist-devel

On Mon, Jun 8, 2009 at 17:37, David Miller wrote:
> From: Steve.Glendinning@smsc.com
>> You're right, there's nothing "special" about ARM | SUPERH other than they
>> cover all the in-tree platforms using smsc911x.  The aim was to hide this
>> option from menuconfig on x86 etc, where this device is extremely unlikely
>> to be found.  Maybe there's a better way of doing this?
>
> I sincerely doubt keeping this out of x86's menuconfig so important,
> really.

and desktop systems' menuconfig is so big that i dont think one more
driver will make a difference

> So many devices are available for powerpc and sparc64 that will never
> appear there, however those drivers now get build validated on those
> platforms and it's therefore a net-win.

i run randconfigs nightly ... it's neat the kind of unlikely build bugs you find
-mike

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

* Re: [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems
       [not found]       ` <8bd0f97a0906081450s6b471d30p56d86e31ba708730-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-06-09  8:04         ` Steve.Glendinning-sdUf+H5yV5I
  2009-06-09  8:22           ` [PATCH 1/2 v2] netdev: smsc911x: allow building on any system Mike Frysinger
  0 siblings, 1 reply; 17+ messages in thread
From: Steve.Glendinning-sdUf+H5yV5I @ 2009-06-09  8:04 UTC (permalink / raw)
  To: Mike Frysinger
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b, David Miller,
	Ian.Saturley-sdUf+H5yV5I

Mike Frysinger <vapier.adi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote on 08/06/2009 22:50:32:
> On Mon, Jun 8, 2009 at 17:37, David Miller wrote:
> > So many devices are available for powerpc and sparc64 that will never
> > appear there, however those drivers now get build validated on those
> > platforms and it's therefore a net-win.
> 
> i run randconfigs nightly ... it's neat the kind of unlikely build bugs 
you find
> -mike

Sounds great, do you want to modify your patch to remove the line 
altogether?

Thanks,
Steve

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

* [PATCH 1/2 v2] netdev: smsc911x: allow building on any system
  2009-06-09  8:04         ` Steve.Glendinning-sdUf+H5yV5I
@ 2009-06-09  8:22           ` Mike Frysinger
  2009-06-09  8:37             ` David Miller
  0 siblings, 1 reply; 17+ messages in thread
From: Mike Frysinger @ 2009-06-09  8:22 UTC (permalink / raw)
  To: netdev; +Cc: uclinux-dist-devel

The smsc911x driver should build fine on any system as it contains no arch
specific code (all platform resources), and any platform that has
appropriate resources should run fine (as it does on Blackfin systems).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
v2
	- drop the depends line completely

 drivers/net/Kconfig |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 214a92d..8c92abd 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -1000,7 +1000,6 @@ config SMC911X
 
 config SMSC911X
 	tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
-	depends on ARM || SUPERH
 	select CRC32
 	select MII
 	select PHYLIB
-- 
1.6.3.1


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

* Re: [PATCH 1/2 v2] netdev: smsc911x: allow building on any system
  2009-06-09  8:22           ` [PATCH 1/2 v2] netdev: smsc911x: allow building on any system Mike Frysinger
@ 2009-06-09  8:37             ` David Miller
  2009-06-09  9:13               ` [PATCH 1/2 v3] " Mike Frysinger
  0 siblings, 1 reply; 17+ messages in thread
From: David Miller @ 2009-06-09  8:37 UTC (permalink / raw)
  To: vapier; +Cc: netdev, uclinux-dist-devel

From: Mike Frysinger <vapier@gentoo.org>
Date: Tue,  9 Jun 2009 04:22:22 -0400

> The smsc911x driver should build fine on any system as it contains no arch
> specific code (all platform resources), and any platform that has
> appropriate resources should run fine (as it does on Blackfin systems).
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Mike I already applied your previous patch.

You'll need to send me a patch relative to that.

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

* [PATCH 1/2 v3] netdev: smsc911x: allow building on any system
  2009-06-09  8:37             ` David Miller
@ 2009-06-09  9:13               ` Mike Frysinger
  2009-06-09 10:59                 ` David Miller
  2009-06-09 12:21                 ` David Miller
  0 siblings, 2 replies; 17+ messages in thread
From: Mike Frysinger @ 2009-06-09  9:13 UTC (permalink / raw)
  To: netdev; +Cc: uclinux-dist-devel

The smsc911x driver should build fine on any system as it contains no arch
specific code (all platform resources), and any platform that has
appropriate resources should run fine.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
v3
	- based on net-next

 drivers/net/Kconfig |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 962b261..8c92abd 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -1000,7 +1000,6 @@ config SMC911X
 
 config SMSC911X
 	tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
-	depends on ARM || SUPERH || BLACKFIN
 	select CRC32
 	select MII
 	select PHYLIB
-- 
1.6.3.1


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

* Re: [PATCH 1/2 v3] netdev: smsc911x: allow building on any system
  2009-06-09  9:13               ` [PATCH 1/2 v3] " Mike Frysinger
@ 2009-06-09 10:59                 ` David Miller
  2009-06-09 11:08                   ` [Uclinux-dist-devel] " Mike Frysinger
  2009-06-09 12:21                 ` David Miller
  1 sibling, 1 reply; 17+ messages in thread
From: David Miller @ 2009-06-09 10:59 UTC (permalink / raw)
  To: vapier; +Cc: netdev, uclinux-dist-devel

From: Mike Frysinger <vapier@gentoo.org>
Date: Tue,  9 Jun 2009 05:13:39 -0400

> The smsc911x driver should build fine on any system as it contains no arch
> specific code (all platform resources), and any platform that has
> appropriate resources should run fine.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Where is patch 2/2 :-)

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

* Re: [Uclinux-dist-devel] [PATCH 1/2 v3] netdev: smsc911x: allow building on any system
  2009-06-09 10:59                 ` David Miller
@ 2009-06-09 11:08                   ` Mike Frysinger
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger @ 2009-06-09 11:08 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, uclinux-dist-devel

On Tue, Jun 9, 2009 at 06:59, David Miller wrote:
> From: Mike Frysinger <vapier@gentoo.org>
>> The smsc911x driver should build fine on any system as it contains no arch
>> specific code (all platform resources), and any platform that has
>> appropriate resources should run fine.
>>
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> Where is patch 2/2 :-)

meh, call this patch 1.5 since it doesnt replace the previous 1/2 like
v2 did.  there is no 2/2.
-mike

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

* Re: [PATCH 1/2 v3] netdev: smsc911x: allow building on any system
  2009-06-09  9:13               ` [PATCH 1/2 v3] " Mike Frysinger
  2009-06-09 10:59                 ` David Miller
@ 2009-06-09 12:21                 ` David Miller
  2009-06-09 12:23                   ` David Miller
  1 sibling, 1 reply; 17+ messages in thread
From: David Miller @ 2009-06-09 12:21 UTC (permalink / raw)
  To: vapier; +Cc: netdev, uclinux-dist-devel

From: Mike Frysinger <vapier@gentoo.org>
Date: Tue,  9 Jun 2009 05:13:39 -0400

> The smsc911x driver should build fine on any system as it contains no arch
> specific code (all platform resources), and any platform that has
> appropriate resources should run fine.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Applied.

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

* Re: [PATCH 1/2 v3] netdev: smsc911x: allow building on any system
  2009-06-09 12:21                 ` David Miller
@ 2009-06-09 12:23                   ` David Miller
  0 siblings, 0 replies; 17+ messages in thread
From: David Miller @ 2009-06-09 12:23 UTC (permalink / raw)
  To: vapier; +Cc: netdev, uclinux-dist-devel

From: David Miller <davem@davemloft.net>
Date: Tue, 09 Jun 2009 05:21:36 -0700 (PDT)

> From: Mike Frysinger <vapier@gentoo.org>
> Date: Tue,  9 Jun 2009 05:13:39 -0400
> 
>> The smsc911x driver should build fine on any system as it contains no arch
>> specific code (all platform resources), and any platform that has
>> appropriate resources should run fine.
>> 
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> 
> Applied.

Actually, I have to revert.

Not all platforms implement writesl(), readsl(), etc.
The build failed on sparc64, for example.

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

end of thread, other threads:[~2009-06-09 12:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-06  0:37 [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems Mike Frysinger
2009-06-06  0:37 ` [PATCH 2/2] netdev: smsc911x: add missing __devexit_p() usage Mike Frysinger
2009-06-08  7:10   ` David Miller
     [not found]   ` <1244248640-22699-2-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2009-06-08 19:37     ` Steve.Glendinning-sdUf+H5yV5I
2009-06-08  7:10 ` [PATCH 1/2] netdev: smsc911x: allow building on Blackfin systems David Miller
2009-06-08 19:36 ` Steve.Glendinning
2009-06-08 21:29   ` [Uclinux-dist-devel] [PATCH 1/2] netdev: smsc911x: allowbuilding " Hennerich, Michael
2009-06-08 21:37   ` [PATCH 1/2] netdev: smsc911x: allow building " David Miller
2009-06-08 21:50     ` [Uclinux-dist-devel] " Mike Frysinger
     [not found]       ` <8bd0f97a0906081450s6b471d30p56d86e31ba708730-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-09  8:04         ` Steve.Glendinning-sdUf+H5yV5I
2009-06-09  8:22           ` [PATCH 1/2 v2] netdev: smsc911x: allow building on any system Mike Frysinger
2009-06-09  8:37             ` David Miller
2009-06-09  9:13               ` [PATCH 1/2 v3] " Mike Frysinger
2009-06-09 10:59                 ` David Miller
2009-06-09 11:08                   ` [Uclinux-dist-devel] " Mike Frysinger
2009-06-09 12:21                 ` David Miller
2009-06-09 12:23                   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox