diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2015-03-03 17:32:14 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-04-14 05:48:12 +0200 |
commit | afa093bfa782f1cc8fc1bf4df01841e3167df9b1 (patch) | |
tree | a14846572a3283c79a89b377b359ca484b258abf /drivers | |
parent | 29e7fc19ceda9d93fba21a35990e2eb157901010 (diff) | |
download | u-boot-imx-afa093bfa782f1cc8fc1bf4df01841e3167df9b1.zip u-boot-imx-afa093bfa782f1cc8fc1bf4df01841e3167df9b1.tar.gz u-boot-imx-afa093bfa782f1cc8fc1bf4df01841e3167df9b1.tar.bz2 |
usb: dwc3: gadget: Set non EP0 max packet limit to 512B
Commit "drivers/dwc3: add a workaround for too small OUT requests"
sets max packet for OUT requests when transfer is smaller.
Until this change the default maxpacket for non EP0 EPs was 1024. This is
too much, since UMS LBA size is 512B
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index a8335b3..ffbf72e 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1605,7 +1605,7 @@ static int dwc3_gadget_init_hw_endpoints(struct dwc3 *dwc, } else { int ret; - usb_ep_set_maxpacket_limit(&dep->endpoint, 1024); + usb_ep_set_maxpacket_limit(&dep->endpoint, 512); dep->endpoint.max_streams = 15; dep->endpoint.ops = &dwc3_gadget_ep_ops; list_add_tail(&dep->endpoint.ep_list, |