summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b93c00)
raw | patch | inline | side by side (parent: 6b93c00)
author | Ravi B <ravibabu@ti.com> | |
Thu, 9 Dec 2010 06:31:39 +0000 (12:01 +0530) | ||
committer | Vaibhav Hiremath <hvaibhav@ti.com> | |
Mon, 23 Jan 2012 19:14:13 +0000 (00:44 +0530) |
Fixes the read_fifo call with '0' rxcount.
Signed-off-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/usb/musb/musb_gadget_ep0.c | patch | blob | history |
index 32fd0144eb2689978b8eed00f8a36c1b11305e93..22d7ef22720334e86776634ef06ca1b69cbacae8 100644 (file)
req->status = -EOVERFLOW;
count = len;
}
- musb->ops->read_fifo(&musb->endpoints[0], count, buf);
- req->actual += count;
+ if (count > 0) {
+ musb->ops->read_fifo(&musb->endpoints[0], count, buf);
+ req->actual += count;
+ }
csr = MUSB_CSR0_P_SVDRXPKTRDY;
if (count < 64 || req->actual == req->length) {
musb->ep0_state = MUSB_EP0_STAGE_STATUSIN;