Skip to content

Commit d774efe

Browse files
Tony Olechgregkh
authored andcommitted
USB: u132-hcd: host controller driver for ELAN U132 adapter
This "u132-hcd" module is one half of the "driver" for ELAN's U132 which is a USB to CardBus OHCI controller adapter. This module needs the "ftdi-elan" module in order to communicate to CardBus OHCI controller inserted into the U132 adapter. When the "ftdi-elan" module detects a supported CardBus OHCI controller in the U132 adapter it loads this "u132-hcd" module. Upon a successful device probe() the single workqueue is started up which does all the processing of commands from the USB core that implement the host controller. The workqueue maintains the urb queues and issues commands via the functions exported by the "ftdi-elan" module. Each such command will result in a callback. Note that the "ftdi-elan" module is a USB client driver. Note that this "u132-hcd" module is a (cut-down OHCI) host controller. Thus we have a topology with the parent of a host controller being a USB client! This really stresses the USB subsystem semaphore/mutex handling in the module removal. Signed-off-by: Tony Olech <tony.olech@elandigitalsystems.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent a5c66e4 commit d774efe

4 files changed

Lines changed: 3325 additions & 0 deletions

File tree

‎drivers/usb/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ obj-$(CONFIG_USB_ISP116X_HCD) += host/
1414
obj-$(CONFIG_USB_OHCI_HCD) += host/
1515
obj-$(CONFIG_USB_UHCI_HCD) += host/
1616
obj-$(CONFIG_USB_SL811_HCD) += host/
17+
obj-$(CONFIG_USB_U132_HCD) += host/
1718
obj-$(CONFIG_ETRAX_USB_HOST) += host/
1819
obj-$(CONFIG_USB_OHCI_AT91) += host/
1920

‎drivers/usb/host/Kconfig‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,34 @@ config USB_UHCI_HCD
142142
To compile this driver as a module, choose M here: the
143143
module will be called uhci-hcd.
144144

145+
config USB_U132_HCD
146+
tristate "Elan U132 Adapter Host Controller"
147+
depends on USB && USB_FTDI_ELAN
148+
default M
149+
help
150+
The U132 adapter is a USB to CardBus adapter specifically designed
151+
for PC cards that contain an OHCI host controller. Typical PC cards
152+
are the Orange Mobile 3G Option GlobeTrotter Fusion card. The U132
153+
adapter will *NOT* work with PC cards that do not contain an OHCI
154+
controller.
155+
156+
For those PC cards that contain multiple OHCI controllers only ther
157+
first one is used.
158+
159+
The driver consists of two modules, the "ftdi-elan" module is a
160+
USB client driver that interfaces to the FTDI chip within ELAN's
161+
USB-to-PCMCIA adapter, and this "u132-hcd" module is a USB host
162+
controller driver that talks to the OHCI controller within the
163+
CardBus cards that are inserted in the U132 adapter.
164+
165+
This driver has been tested with a CardBus OHCI USB adapter, and
166+
worked with a USB PEN Drive inserted into the first USB port of
167+
the PCCARD. A rather pointless thing to do, but useful for testing.
168+
169+
It is safe to say M here.
170+
171+
See also <http://www.elandigitalsystems.com/support/ufaq/u132linux.php>
172+
145173
config USB_SL811_HCD
146174
tristate "SL811HS HCD support"
147175
depends on USB

‎drivers/usb/host/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
1414
obj-$(CONFIG_USB_UHCI_HCD) += uhci-hcd.o
1515
obj-$(CONFIG_USB_SL811_HCD) += sl811-hcd.o
1616
obj-$(CONFIG_USB_SL811_CS) += sl811_cs.o
17+
obj-$(CONFIG_USB_U132_HCD) += u132-hcd.o
1718
obj-$(CONFIG_ETRAX_ARCH_V10) += hc_crisv10.o

0 commit comments

Comments
 (0)