usb:gadget:f_thor: Allocate request up to THOR_PACKET_SIZE not ep->maxpacket
authorLukasz Majewski <l.majewski@samsung.com>
Wed, 5 Feb 2014 09:10:45 +0000 (10:10 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 6 Feb 2014 01:22:45 +0000 (02:22 +0100)
Now it is possible to allocate static request - which receives data from
the host (OUT transaction) to the size of THOR packet.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
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)