]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
usb: renesas_usbhs: fixup dma transfer stall
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 17 Oct 2012 06:33:30 +0000 (23:33 -0700)
committerFelipe Balbi <balbi@ti.com>
Tue, 23 Oct 2012 06:44:37 +0000 (09:44 +0300)
renesas_usbhs driver can switch DMA/PIO transfer by using handler,
and each handler have push/pop direction.
But unfortunately, current dma push handler didn't a path
which calls usbhs_pipe_enable(). Thus, dma transfer never happened.
this patch fixes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/fifo.c

index 143c4e9e1be45cc24c0a612d38e590a5ad136be9..c021b202c0f3fe05894d3a94075c55bea8dd1a66 100644 (file)
@@ -795,6 +795,7 @@ static void xfer_work(struct work_struct *work)
        dev_dbg(dev, "  %s %d (%d/ %d)\n",
                fifo->name, usbhs_pipe_number(pipe), pkt->length, pkt->zero);
 
+       usbhs_pipe_enable(pipe);
        usbhsf_dma_start(pipe, fifo);
        dma_async_issue_pending(chan);
 }