linux/drivers/usb/host
Tony Olech 4b87361d49 USB: u132-hcd/ftdi-elan: add support for Option GT 3G Quad card
ELAN's U132 is a USB to CardBus OHCI controller adapter,
    designed specifically for CardBus 3G data cards to
    function in machines without a CardBus slot.
The "ftdi-elan" module is a USB client driver, that detects
    a supported CardBus OHCI controller plugged into the
    U132 adapter and thereafter provides the conduit for
    for access by the "u132-hcd" module.
The "u132-hcd" module is a (cut-down OHCI) host controller
    that supports a single OHCI function of the CardBus 
    card inserted into the U132 adapter.

The problem with the initial implementation is that when
the CardBus card inserted into the U132 adapter has multiple
functions (and a CardBus card can support up to 4 functions),
it was the first function that was arbitrarily choosen.

The first batch of 3G cards tested, like the Merlin Qualcomm
V620, have two functions each supporting a seperate USB OHCI
host controller, of which it was that first function that is
wired up to the 3G modem.

Then along comes the Vodafone Mobile Connect 3G/GPRS data card,
aka "Option GT 3G Quad" as printed on it's rear or "Option N.V.
GlobeTrotter Fusion Quad Lite" as read with "lspci -v". And it
has the meaningful functionality in the second CardBus function.

That presents a problem because it was the "ftdi-elan" module
alone that knows how to communicate to the embedded CardBus slot
and the "u132-hcd" module alone that knows how to access the
pcmcia configuration and CardBus accessible memory space. And
of course, the information about attached (internally hardwired)
devices is contained within USB configuration embedded somewhere
within the CardBus card.

If only the "u132-hcd" module probe() interface could return a
result code that propagated back to the instigating function
platform_device_register() then the "ftdi-elan" module could
try an alternative CardBus function.     However in spite of
the recent changes to the drivers/base/ routines that moved 
device_attach() from bus_add_device() to bus_attach_device()
both of those routines lose the "failed to attach" 0 result
code and thus the calling routine, namely device_add() is
incapable of propaging the "failed to attach" condition back
to platform_device_add() and consequently back to the caller
of platform_device_register()

Experiments show that patching bus_attach_device() to return
ENODEV fails with the kernel locking up very early during
boot. But, however, if the patch is restricted to calls from
platform_device_add() then it does seem to work.

Unfortunately, until the kernel's drivers/base is properly
modified to propagate -ENODEV back to the caller of
platform_device_register(), it is necessary to "fix" the
"ftdi-elan" module by importing knowledge from the 
"u132-hcd" module. This is the reason for the duplicated
functionality introduced in this patch.

Signed-off-by: Tony Olech <tony.olech@elandigitalsystems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-12-20 10:14:27 -08:00
..
ehci-au1xxx.c
ehci-dbg.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
ehci-fsl.c
ehci-fsl.h
ehci-hcd.c EHCI: Fix root-hub and port suspend/resume problems 2006-12-01 14:25:52 -08:00
ehci-hub.c EHCI: Fix root-hub and port suspend/resume problems 2006-12-01 14:25:52 -08:00
ehci-mem.c
ehci-pci.c EHCI: Fix root-hub and port suspend/resume problems 2006-12-01 14:25:52 -08:00
ehci-q.c
ehci-sched.c
ehci.h EHCI: Fix root-hub and port suspend/resume problems 2006-12-01 14:25:52 -08:00
hc_crisv10.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
hc_crisv10.h
isp116x-hcd.c
isp116x.h
Kconfig
Makefile
ohci-at91.c USB: ohci at91 warning fix 2006-12-20 10:14:27 -08:00
ohci-au1xxx.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-dbg.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-ep93xx.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-hcd.c USB: OHCI support for PNX8550 2006-12-20 10:14:27 -08:00
ohci-hub.c USB: ohci handles hardware faults during root port resets 2006-12-20 10:14:27 -08:00
ohci-lh7a404.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-mem.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-omap.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-pci.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-pnx4008.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-pnx8550.c USB: OHCI support for PNX8550 2006-12-20 10:14:27 -08:00
ohci-ppc-soc.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-pxa27x.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-q.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-s3c2410.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci-sa1111.c USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
ohci.h USB: ohci whitespace/comment fixups 2006-12-20 10:14:26 -08:00
pci-quirks.c
pci-quirks.h
sl811-hcd.c
sl811.h
sl811_cs.c [PATCH] pcmcia: conf.ConfigBase and conf.Present consolidation 2006-12-04 20:12:02 -05:00
u132-hcd.c USB: u132-hcd/ftdi-elan: add support for Option GT 3G Quad card 2006-12-20 10:14:27 -08:00
uhci-debug.c
uhci-hcd.c UHCI: module parameter to ignore overcurrent changes 2006-12-20 10:14:26 -08:00
uhci-hcd.h
uhci-hub.c UHCI: module parameter to ignore overcurrent changes 2006-12-20 10:14:26 -08:00
uhci-q.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00