Enable multiple packets sent on fastboot
authorji.luo <ji.luo@nxp.com>
Thu, 28 Sep 2017 10:49:47 +0000 (18:49 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:27 +0000 (02:37 +0800)
Change-Id: I2b8fd610258ffcf81fed25184e69a2d7f34c4b88
Signed-off-by: ji.luo <ji.luo@nxp.com>
drivers/usb/gadget/f_fastboot.c

index b0b5e54..67477c7 100644 (file)
@@ -2039,9 +2039,13 @@ static int fastboot_tx_write(const char *buffer, unsigned int buffer_size)
        struct usb_request *in_req = fastboot_func->in_req;
        int ret;
 
+       /* TODO: Investigate why this is necessary */
+       udelay(8500);
+
        memcpy(in_req->buf, buffer, buffer_size);
        in_req->length = buffer_size;
 
+       usb_gadget_handle_interrupts(0);
        usb_ep_dequeue(fastboot_func->in_ep, in_req);
 
        ret = usb_ep_queue(fastboot_func->in_ep, in_req, 0);