diff options
author | Rakesh Bodla <rbodla@nvidia.com> | 2011-03-08 11:25:00 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-03-08 17:40:51 -0800 |
commit | 7e4d263600d8166bc5be71477f418da2b25aaaf0 (patch) | |
tree | 370490e6f4e2ba9a840384541c40feb5891a5930 /drivers | |
parent | e6098a9079c7a2e9d8a206cc1237726fae8b87e3 (diff) |
fsl_udc: Enable zlp for control endpoint
Fix for sending zero length packet on control endpoint when
transfer size is multiples of MAX packet size.
Bug 793731
Reviewed-on: http://git-master/r/20850
(cherry picked from commit 38d4a5a3e53ca4a9f821bb081062da616ee9ee79)
Change-Id: Id7022d233b88ca18937b244ae9dc4a2d08f32bba
Reviewed-on: http://git-master/r/22001
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index 5318bbcd1fa5..b85ebe9f275e 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -502,9 +502,9 @@ static void ep0_setup(struct fsl_udc *udc) /* the intialization of an ep includes: fields in QH, Regs, * fsl_ep struct */ struct_ep_qh_setup(udc, 0, USB_RECV, USB_ENDPOINT_XFER_CONTROL, - USB_MAX_CTRL_PAYLOAD, 0, 0); + USB_MAX_CTRL_PAYLOAD, 1, 0); struct_ep_qh_setup(udc, 0, USB_SEND, USB_ENDPOINT_XFER_CONTROL, - USB_MAX_CTRL_PAYLOAD, 0, 0); + USB_MAX_CTRL_PAYLOAD, 1, 0); dr_ep_setup(0, USB_RECV, USB_ENDPOINT_XFER_CONTROL); dr_ep_setup(0, USB_SEND, USB_ENDPOINT_XFER_CONTROL); |