]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/usb: Unused endpoint failure for USB gadget
authorRamneek Mehresh <ramneek.mehresh@freescale.com>
Wed, 4 May 2011 14:11:55 +0000 (19:41 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 7 May 2011 01:19:39 +0000 (18:19 -0700)
commit21b14bf660e792f39b98b6deb24fc2c6ad654cbd
treece34d093ed810893aa03f61edaf2a24c3aaaf0d7
parentf53a65704e86e7a7128893535d42e05829f6049f
fsl/usb: Unused endpoint failure for USB gadget

Though USB controller works without this most of the time, an issue was faced
where USB was configured as printer device and it was dropping first
packet(64 bytes) in full speed mode due to DATA PID mismatch.
The problem gets resolved once unused endpoints are configured as bulk.
As per P1020 RM (Table17-31, bits 19-18, bits 3-2) "When only one endpoint
(RX or TX, but not both) of an endpoint pair is used, the unused endpoint
should be configured as a bulk type endpoint." So according to the RM,
this patch is initializing TX and RX endpoints as bulk type

Signed-off-by: Suchit Lepcha <Suchit.Lepcha@freescale.com>
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_udc_core.c