]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
MUSB: More TUSB OTG support
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 14 Sep 2006 15:08:32 +0000 (18:08 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 14 Sep 2006 15:08:32 +0000 (18:08 +0300)
commite3071039a1389fa767113ef4472040df507f3b02
tree57c65c65f07e19080d90ff36bacfc06d715440db
parent89c57744afaaa723f009cf1392c953a55abbf009
MUSB: More TUSB OTG support

Add more host/OTG functionality.

New Features:
   - Cable based role switching (using the ID pin) mostly works.  This gives
much of the end-user value for USB OTG; there's also dynamic role
switching (using special HNP protocol with another OTG device), which
surely won't work yet.
   - Root can write 0/N to /sys/module/musb_hdrc/parameters/musb_otg to
    disable OTG functionality, forcing B-Default mode (with optional SRP
support, but without 8mA current limits) when it's set.  Change this
before the gadget driver initializes (e.g. before "modprobe").

Bugfixes:
   - Fix many OTG mode startup glitches, notably for the root hub.
   - Add workaround for "issue 4".

Cleanups:
   - Remove more mode-specific #ifdeffery
   - ReMoveSomeCamelCasing
   - Quieter startup
   - Quash another Kconfig rebellion
   - Add missing bit declaration
   - Tersify TUSB irq messages

Open Issues:
   - Nothing passes remote wakeup down to root hub (unchanged)
   - Strange VBUS errors (unchanged; workaround: use hub modified for
N770, providing 5V supply till TUSB board does so reliably);
   - Plug in/out as peripheral many times; fine.  As host (with modified
hub), ditto.  Now peripheral again ... fails.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musbdefs.h
drivers/usb/musb/otg.h
drivers/usb/musb/plat_uds.c
drivers/usb/musb/tusb6010.c
drivers/usb/musb/tusb6010.h
drivers/usb/musb/virthub.c