summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorji.luo <ji.luo@nxp.com>2017-10-12 03:02:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-12 03:02:13 +0000
commitf225ad66063b67b3c1b33e41f2c4397023437628 (patch)
tree1b81a9f6aca614ffa47d2381db1f53dd7744030b
parent701580386cfec1a427f983837b6eab6abb1ac75a (diff)
parentecb96a4fb3e70cd655a9ff30f9d7a2842f09ec0b (diff)
downloaduboot-imx-f225ad66063b67b3c1b33e41f2c4397023437628.tar.gz
Enable multiple packets sent on fastboot am: f065394aef
am: ecb96a4fb3 Change-Id: I139fce23948606f1cfdc10d9e15fd010db1f6e1a
-rw-r--r--drivers/usb/gadget/f_fastboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index f66362c696..6760765dc1 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -2772,9 +2772,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);