Skip to content

Commit 4324fd4

Browse files
David Brownellgregkh
authored andcommitted
[PATCH] USB: usbnet (7/9) module for CDC Ethernet
Makes the CDC Ethernet support live in a separate driver module. This module is a bit special since it exports utility functions that are reused by the the Zaurus and RNDIS drivers, but it's not "core" like usbnet itself. Signed-off-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0aa599c commit 4324fd4

File tree

4 files changed

+537
-421
lines changed

4 files changed

+537
-421
lines changed

drivers/usb/net/Kconfig

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -137,35 +137,6 @@ config USB_PL2301
137137
Choose this option if you're using a host-to-host cable
138138
with one of these chips.
139139

140-
comment "Intelligent USB Devices/Gadgets"
141-
depends on USB_USBNET
142-
143-
config USB_CDCETHER
144-
boolean "CDC Ethernet support (smart devices such as cable modems)"
145-
depends on USB_USBNET
146-
default y
147-
help
148-
This option supports devices conforming to the Communication Device
149-
Class (CDC) Ethernet Control Model, a specification that's easy to
150-
implement in device firmware. The CDC specifications are available
151-
from <http://www.usb.org/>.
152-
153-
CDC Ethernet is an implementation option for DOCSIS cable modems
154-
that support USB connectivity, used for non-Microsoft USB hosts.
155-
The Linux-USB CDC Ethernet Gadget driver is an open implementation.
156-
This driver should work with at least the following devices:
157-
158-
* Ericsson PipeRider (all variants)
159-
* Motorola (DM100 and SB4100)
160-
* Broadcom Cable Modem (reference design)
161-
* Toshiba PCX1100U
162-
* ...
163-
164-
This driver creates an interface named "ethX", where X depends on
165-
what other networking devices you have in use. However, if the
166-
IEEE 802 "local assignment" bit is set in the address, a "usbX"
167-
name is used instead.
168-
169140
comment "Drivers built using the usbnet core"
170141

171142
config USB_NET_AX8817X
@@ -197,6 +168,32 @@ config USB_NET_AX8817X
197168
what other networking devices you have in use.
198169

199170

171+
config USB_NET_CDCETHER
172+
tristate "CDC Ethernet support (smart devices such as cable modems)"
173+
depends on USB_USBNET
174+
default y
175+
help
176+
This option supports devices conforming to the Communication Device
177+
Class (CDC) Ethernet Control Model, a specification that's easy to
178+
implement in device firmware. The CDC specifications are available
179+
from <http://www.usb.org/>.
180+
181+
CDC Ethernet is an implementation option for DOCSIS cable modems
182+
that support USB connectivity, used for non-Microsoft USB hosts.
183+
The Linux-USB CDC Ethernet Gadget driver is an open implementation.
184+
This driver should work with at least the following devices:
185+
186+
* Ericsson PipeRider (all variants)
187+
* Motorola (DM100 and SB4100)
188+
* Broadcom Cable Modem (reference design)
189+
* Toshiba PCX1100U
190+
* ...
191+
192+
This driver creates an interface named "ethX", where X depends on
193+
what other networking devices you have in use. However, if the
194+
IEEE 802 "local assignment" bit is set in the address, a "usbX"
195+
name is used instead.
196+
200197
config USB_NET_GL620A
201198
tristate "GeneSys GL620USB-A based cables"
202199
depends on USB_USBNET
@@ -280,6 +277,7 @@ config USB_EPSON2888
280277
config USB_NET_ZAURUS
281278
tristate "Sharp Zaurus (stock ROMs) and compatible"
282279
depends on USB_USBNET
280+
select USB_NET_CDCETHER
283281
select CRC32
284282
default y
285283
help

drivers/usb/net/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ obj-$(CONFIG_USB_KAWETH) += kaweth.o
77
obj-$(CONFIG_USB_PEGASUS) += pegasus.o
88
obj-$(CONFIG_USB_RTL8150) += rtl8150.o
99
obj-$(CONFIG_USB_NET_AX8817X) += asix.o
10+
obj-$(CONFIG_USB_NET_CDCETHER) += cdc_ether.o
1011
obj-$(CONFIG_USB_NET_GL620A) += gl620a.o
1112
obj-$(CONFIG_USB_NET_NET1080) += net1080.o
1213
obj-$(CONFIG_USB_NET_CDC_SUBSET) += cdc_subset.o

0 commit comments

Comments
 (0)