]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/usb/gadget/f_thor.c
usb:gadget:f_thor: Allocate request up to THOR_PACKET_SIZE not ep->maxpacket
[people/ms/u-boot.git] / drivers / usb / gadget / f_thor.c
index c4c9909155a262e484970383d8a4355e17dcbc94..780729a20c2b4a5ccd3d870f3820cab519963f2d 100644 (file)
@@ -614,7 +614,7 @@ static struct usb_request *thor_start_ep(struct usb_ep *ep)
 {
        struct usb_request *req;
 
-       req = alloc_ep_req(ep, ep->maxpacket);
+       req = alloc_ep_req(ep, THOR_PACKET_SIZE);
        debug("%s: ep:%p req:%p\n", __func__, ep, req);
 
        if (!req)