* [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET
@ 2003-12-21 2:22 Adrian Bunk
2003-12-21 2:37 ` Jeff Garzik
2003-12-21 23:46 ` David Brownell
0 siblings, 2 replies; 4+ messages in thread
From: Adrian Bunk @ 2003-12-21 2:22 UTC (permalink / raw)
To: linux-net, dbrownell; +Cc: jgarzik, greg, linux-kernel
I observed the following small problem in 2.6:
- MII depends on NET_ETHERNET
- USB_PEGASUS and USB_USBNET select MII, but they depend only on NET
The patch below lets USB_PEGASUS and USB_USBNET depend on NET_ETHERNET
instead of NET to fix this issue.
Please apply
Adrian
--- linux-2.6.0-test11-mm1-modular-no-smp/drivers/usb/net/Kconfig.old 2003-12-21 03:18:32.000000000 +0100
+++ linux-2.6.0-test11-mm1-modular-no-smp/drivers/usb/net/Kconfig 2003-12-21 03:18:55.000000000 +0100
@@ -69,7 +69,7 @@
config USB_PEGASUS
tristate "USB Pegasus/Pegasus-II based ethernet device support"
- depends on USB && NET
+ depends on USB && NET_ETHERNET
select MII
---help---
Say Y here if you know you have Pegasus or Pegasus-II based adapter.
@@ -95,7 +95,7 @@
config USB_USBNET
tristate "Multi-purpose USB Networking Framework"
- depends on USB && NET
+ depends on USB && NET_ETHERNET
select CRC32
select MII
---help---
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET
2003-12-21 2:22 [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET Adrian Bunk
@ 2003-12-21 2:37 ` Jeff Garzik
2003-12-21 23:46 ` David Brownell
1 sibling, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2003-12-21 2:37 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-net, dbrownell, greg, linux-kernel
Adrian Bunk wrote:
> I observed the following small problem in 2.6:
>
> - MII depends on NET_ETHERNET
> - USB_PEGASUS and USB_USBNET select MII, but they depend only on NET
>
> The patch below lets USB_PEGASUS and USB_USBNET depend on NET_ETHERNET
> instead of NET to fix this issue.
Look OK to me. I'll let GregKH apply...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET
2003-12-21 2:22 [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET Adrian Bunk
2003-12-21 2:37 ` Jeff Garzik
@ 2003-12-21 23:46 ` David Brownell
2003-12-29 20:15 ` Greg KH
1 sibling, 1 reply; 4+ messages in thread
From: David Brownell @ 2003-12-21 23:46 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-net, jgarzik, greg, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
Adrian Bunk wrote:
> I observed the following small problem in 2.6:
>
> - MII depends on NET_ETHERNET
> - USB_PEGASUS and USB_USBNET select MII, but they depend only on NET
>
> The patch below lets USB_PEGASUS and USB_USBNET depend on NET_ETHERNET
> instead of NET to fix this issue.
Actually how about this one instead? The PEGASUS bit is the same.
The difference is that MII (and CRC32) are only attributed to the
driver code that needs those ... AX8817X needs both, ZAURUS just
needs CRC32. The core (which should eventually become a separate
module) shouldn't depend on those modules at all.
Also both CDCETHER and AX8817X are marked as non-experimental;
I recall Dave Hollis submitted a patch to do that for AX8817X,
and CDCETHER now seems to have gotten enough success reports too.
- Dave
[-- Attachment #2: kconf.patch --]
[-- Type: text/plain, Size: 1468 bytes --]
--- 1.12/drivers/usb/net/Kconfig Sat Sep 27 03:23:06 2003
+++ edited/drivers/usb/net/Kconfig Sun Dec 21 15:24:41 2003
@@ -69,7 +69,7 @@
config USB_PEGASUS
tristate "USB Pegasus/Pegasus-II based ethernet device support"
- depends on USB && NET
+ depends on USB && NET_ETHERNET
select MII
---help---
Say Y here if you know you have Pegasus or Pegasus-II based adapter.
@@ -96,8 +96,6 @@
config USB_USBNET
tristate "Multi-purpose USB Networking Framework"
depends on USB && NET
- select CRC32
- select MII
---help---
This driver supports several kinds of network links over USB,
with "minidrivers" built around a common network driver core
@@ -206,6 +204,7 @@
config USB_ZAURUS
boolean "Sharp Zaurus (stock ROMs)"
depends on USB_USBNET
+ select CRC32
default y
help
Choose this option to support the usb networking links used by
@@ -217,9 +216,7 @@
config USB_CDCETHER
boolean "CDC Ethernet support (smart devices such as cable modems)"
- # experimental primarily because cdc-ether was.
- # make it non-experimental after more interop testing
- depends on USB_USBNET && EXPERIMENTAL
+ depends on USB_USBNET
default y
help
This option supports devices conforming to the Communication Device
@@ -247,7 +244,9 @@
config USB_AX8817X
boolean "ASIX AX88172 Based USB 2.0 Ethernet Devices"
- depends on USB_USBNET && EXPERIMENTAL
+ depends on USB_USBNET && NET_ETHERNET
+ select CRC32
+ select MII
default y
help
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET
2003-12-21 23:46 ` David Brownell
@ 2003-12-29 20:15 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-12-29 20:15 UTC (permalink / raw)
To: David Brownell; +Cc: Adrian Bunk, linux-net, jgarzik, linux-kernel
On Sun, Dec 21, 2003 at 03:46:31PM -0800, David Brownell wrote:
> Adrian Bunk wrote:
> >I observed the following small problem in 2.6:
> >
> >- MII depends on NET_ETHERNET
> >- USB_PEGASUS and USB_USBNET select MII, but they depend only on NET
> >
> >The patch below lets USB_PEGASUS and USB_USBNET depend on NET_ETHERNET
> >instead of NET to fix this issue.
>
> Actually how about this one instead? The PEGASUS bit is the same.
> The difference is that MII (and CRC32) are only attributed to the
> driver code that needs those ... AX8817X needs both, ZAURUS just
> needs CRC32. The core (which should eventually become a separate
> module) shouldn't depend on those modules at all.
>
> Also both CDCETHER and AX8817X are marked as non-experimental;
> I recall Dave Hollis submitted a patch to do that for AX8817X,
> and CDCETHER now seems to have gotten enough success reports too.
Thanks, I've merged this by hand and applied it to my trees.
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-29 21:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-21 2:22 [2.6 patch] let USB_{PEGASUS,USBNET} depend on NET_ETHERNET Adrian Bunk
2003-12-21 2:37 ` Jeff Garzik
2003-12-21 23:46 ` David Brownell
2003-12-29 20:15 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox