public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] musb: fix ISOC Tx programming for CPPI DMAs
@ 2009-08-28  5:58 Ajay Kumar Gupta
  2009-08-28  9:23 ` Sergei Shtylyov
  2009-08-28 14:24 ` Sergei Shtylyov
  0 siblings, 2 replies; 16+ messages in thread
From: Ajay Kumar Gupta @ 2009-08-28  5:58 UTC (permalink / raw)
  To: linux-usb
  Cc: linux-omap, felipe.balbi, david-b, sshtylyov, Ajay Kumar Gupta,
	Swaminathan S, Babu Ravi

Isochronous Tx DMA is getting programmed but never getting started
for CPPI and TUSB DMAs and thus Isochronous Tx doesn't work.

Fixing it by starting DMAs using musb_h_tx_dma_start().

Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Babu Ravi <ravibabu@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
---
 drivers/usb/musb/musb_host.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index cf94511..e3ab40a 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1301,8 +1301,11 @@ void musb_host_tx(struct musb *musb, u8 epnum)
 		return;
 	} else	if (usb_pipeisoc(pipe) && dma) {
 		if (musb_tx_dma_program(musb->dma_controller, hw_ep, qh, urb,
-				offset, length))
+				offset, length)) {
+			if (is_cppi_enabled() || tusb_dma_omap())
+				musb_h_tx_dma_start(hw_ep);
 			return;
+		}
 	} else	if (tx_csr & MUSB_TXCSR_DMAENAB) {
 		DBG(1, "not complete, but DMA enabled?\n");
 		return;
-- 
1.6.2.4


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-08-28 14:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-28  5:58 [PATCH] musb: fix ISOC Tx programming for CPPI DMAs Ajay Kumar Gupta
2009-08-28  9:23 ` Sergei Shtylyov
2009-08-28  9:29   ` Sergei Shtylyov
2009-08-28  9:44   ` Gupta, Ajay Kumar
2009-08-28  9:46     ` Gupta, Ajay Kumar
2009-08-28 10:02     ` Sergei Shtylyov
     [not found]       ` <4A97AB42.4070008-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2009-08-28 10:11         ` Subbrathnam, Swaminathan
     [not found]           ` <FCCFB4CDC6E5564B9182F639FC35608702F9A45083-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-08-28 13:27             ` Sergei Shtylyov
2009-08-28 10:12         ` Sergei Shtylyov
2009-08-28 10:28       ` Gupta, Ajay Kumar
2009-08-28 10:35         ` Gupta, Ajay Kumar
2009-08-28 12:16           ` Sergei Shtylyov
     [not found]             ` <4A97CA80.7010600-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2009-08-28 13:06               ` Sergei Shtylyov
2009-08-28 13:23                 ` Sergei Shtylyov
2009-08-28 10:46         ` Sergei Shtylyov
2009-08-28 14:24 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox