USB: fsl_usb2_udc: fix bug in processing setup requests
authorLi Yang <leoli@freescale.com>
Fri, 17 Aug 2007 15:36:44 +0000 (08:36 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Aug 2007 21:28:00 +0000 (14:28 -0700)
commit39d1f8c9fcb241c526efa5fff5869cad7beba98e
treeddf4decadfe8d7c925ba4a62d7b90d5783e8e264
parentd1a94f080f5bdfe46c9fb4954ffe8ae9ec29e44a
USB: fsl_usb2_udc: fix bug in processing setup requests

Kim Liu found that in the original code certain class setup requests
are wrongly recognized and processed as standard setup requests.
For that reason gadget ether can't work in RNDIS mode with Windows host.

The patch fixes the setup request processing code, and makes class
requests correctly passed to gadget layer.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kim Liu <KLiu@vixs.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_usb2_udc.c