diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2015-03-12 15:35:19 +0900 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-08-22 12:23:01 -0400 |
commit | 68960057e584cc367a6ae7e4737bbc240651aaec (patch) | |
tree | a585f22acb003dbde23677e5d602e2ed6ba12445 /drivers/usb | |
parent | 31338a15b1e38478183dd19f55d5991747268692 (diff) | |
download | lwn-68960057e584cc367a6ae7e4737bbc240651aaec.tar.gz lwn-68960057e584cc367a6ae7e4737bbc240651aaec.zip |
usb: renesas_usbhs: fix the sequence in xfer_work()
[ Upstream commit 9b53d9af7aac09cf249d72bfbf15f08e47c4f7fe ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/renesas_usbhs/fifo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c index e5f429ee7a89..8e98d98412bb 100644 --- a/drivers/usb/renesas_usbhs/fifo.c +++ b/drivers/usb/renesas_usbhs/fifo.c @@ -858,10 +858,10 @@ static void xfer_work(struct work_struct *work) fifo->name, usbhs_pipe_number(pipe), pkt->length, pkt->zero); usbhs_pipe_running(pipe, 1); - usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans); - usbhs_pipe_enable(pipe); usbhsf_dma_start(pipe, fifo); + usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans); dma_async_issue_pending(chan); + usbhs_pipe_enable(pipe); } /* |