| From 5f34f219811b5b22e7116425b9a35b875111113c Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Sun, 1 Jun 2014 20:31:46 -0700 |
| Subject: usb: renesas: gadget: fixup: complete STATUS stage after receiving |
| |
| Current usbhs gadget driver didn't complete STATUS stage after receiving. |
| It wasn't problem for us before, because some USB class doesn't use |
| DATA OUT stage in control transfer. |
| But, it is required on some device. |
| |
| Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Signed-off-by: Felipe Balbi <balbi@ti.com> |
| (cherry picked from commit 3fe15505296cb563362e2cf6d3aed73e123e0df0) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/usb/renesas_usbhs/fifo.c | 8 ++++++++ |
| 1 file changed, 8 insertions(+) |
| |
| diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c |
| index d49f9c326035..4fd36530bfa3 100644 |
| --- a/drivers/usb/renesas_usbhs/fifo.c |
| +++ b/drivers/usb/renesas_usbhs/fifo.c |
| @@ -681,6 +681,14 @@ usbhs_fifo_read_end: |
| usbhs_pipe_number(pipe), |
| pkt->length, pkt->actual, *is_done, pkt->zero); |
| |
| + /* |
| + * Transmission end |
| + */ |
| + if (*is_done) { |
| + if (usbhs_pipe_is_dcp(pipe)) |
| + usbhs_dcp_control_transfer_done(pipe); |
| + } |
| + |
| usbhs_fifo_read_busy: |
| usbhsf_fifo_unselect(pipe, fifo); |
| |
| -- |
| 2.1.2 |
| |