aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/renesas_usbhs/fifo.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-06-06 14:18:54 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-07 09:10:10 -0700
commit0432eed008024e0e90f16207ab406ac6ec877cac (patch)
tree0bcd9d1f7177b428c1d422d98335ac7e099d5edb /drivers/usb/renesas_usbhs/fifo.c
parentd77e3f4e1743834c7b4acb54004ffd7f57c82582 (diff)
usb: renesas_usbhs: tifyup packet start timing
packet transfer timing are controlled in mod_gadget on current renesas_usbhs, and this style will be imitated on mod_host. But it need not be managed with host/gadget if it is general transfer. By this patch, the packet transfer timing is managed in fifo.c Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/fifo.c')
-rw-r--r--drivers/usb/renesas_usbhs/fifo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c
index 8852423313a..0efee5fc034 100644
--- a/drivers/usb/renesas_usbhs/fifo.c
+++ b/drivers/usb/renesas_usbhs/fifo.c
@@ -74,6 +74,8 @@ void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt,
usbhs_unlock(priv, flags);
/******************** spin unlock ******************/
+
+ usbhs_pkt_start(pipe);
}
static void __usbhsf_pkt_del(struct usbhs_pkt *pkt)
@@ -148,8 +150,10 @@ __usbhs_pkt_handler_end:
usbhs_unlock(priv, flags);
/******************** spin unlock ******************/
- if (is_done)
+ if (is_done) {
info->done(pkt);
+ usbhs_pkt_start(pipe);
+ }
return ret;
}