USB: pxa27x_udc: compatibility with pxa320 SoC
authorRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 22 Apr 2009 03:34:44 +0000 (20:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:42 +0000 (21:44 -0700)
commit9f5351b743716c796d13235651699fb4ec7aa64f
treed8cfe409a56f89e3753fd6f82cd38beddb3d4244
parentf6d529f936672d341fab14ffb0d8eebeee2d8cd3
USB: pxa27x_udc: compatibility with pxa320 SoC

Got pxa27x_udc working on the pxa320 Nomad platform.  The
problem was that the pxa3xx UDC is not quite compatible with
the pxa27x UDC in how it handles back-to-back control
packets.  The pxa27x probably drops them by default, but the
pxa320 does not, and you have to detect it and set the OPC
bit to clear the zero-length packet.

Signed-off-by: Aric Blumer <aric@sdgsystems.com>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/pxa27x_udc.c