aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2015-03-12 02:35:19 -0400
committerFelipe Balbi <balbi@ti.com>2015-03-13 11:41:12 -0400
commit9b53d9af7aac09cf249d72bfbf15f08e47c4f7fe (patch)
tree363c664f0d3de678dbd0466cc19f487f6b518ec2
parent7a96b78464bd8ba72c1c3095c543c1402db59e35 (diff)
usb: renesas_usbhs: fix the sequence in xfer_work()
This patch fixes the setup sequence in xfer_work(). Otherwise, sometimes a usb transaction will get stuck. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/renesas_usbhs/fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c
index 28d10eb432d5..b737661b10a2 100644
--- a/drivers/usb/renesas_usbhs/fifo.c
+++ b/drivers/usb/renesas_usbhs/fifo.c
@@ -822,10 +822,10 @@ static void xfer_work(struct work_struct *work)
822 fifo->name, usbhs_pipe_number(pipe), pkt->length, pkt->zero); 822 fifo->name, usbhs_pipe_number(pipe), pkt->length, pkt->zero);
823 823
824 usbhs_pipe_running(pipe, 1); 824 usbhs_pipe_running(pipe, 1);
825 usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans);
826 usbhs_pipe_enable(pipe);
827 usbhsf_dma_start(pipe, fifo); 825 usbhsf_dma_start(pipe, fifo);
826 usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans);
828 dma_async_issue_pending(chan); 827 dma_async_issue_pending(chan);
828 usbhs_pipe_enable(pipe);
829} 829}
830 830
831/* 831/*