From: Lukasz Majewski Date: Wed, 5 Feb 2014 09:10:45 +0000 (+0100) Subject: usb:gadget:f_thor: Allocate request up to THOR_PACKET_SIZE not ep->maxpacket X-Git-Tag: v2014.04-rc1~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84c13e6f61ecf73d2d477c055a6dc96630f3e4b4;p=u-boot usb:gadget:f_thor: Allocate request up to THOR_PACKET_SIZE not ep->maxpacket 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 Cc: Marek Vasut --- diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index c4c9909155..780729a20c 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -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)