* [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 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: [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
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