]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: dwc3: gadget: Set non EP0 max packet limit to 512B
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 3 Mar 2015 16:32:14 +0000 (17:32 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:12 +0000 (21:47 +0200)
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>
drivers/usb/dwc3/gadget.c

index a8335b3964cfcf59bb4ee058691a1f3d377ffa13..ffbf72e903d2b4164597052b58ba19e749ca01e7 100644 (file)
@@ -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,