mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-12 13:53:27 +08:00
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 <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
e0059eaef1
commit
84c13e6f61
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user