Title: [6872] trunk/drivers/usb/musb/musbhsdma.c: bug[#5267]the interrupt pending bits should be cleared at the beginning of ISR
Revision
6872
Author
cliff
Date
2009-06-30 00:57:22 -0500 (Tue, 30 Jun 2009)

Log Message

bug[#5267]the interrupt pending bits should be cleared at the beginning of ISR

Modified Paths

Diff

Modified: trunk/drivers/usb/musb/musbhsdma.c (6871 => 6872)


--- trunk/drivers/usb/musb/musbhsdma.c	2009-06-30 05:54:38 UTC (rev 6871)
+++ trunk/drivers/usb/musb/musbhsdma.c	2009-06-30 05:57:22 UTC (rev 6872)
@@ -258,7 +258,10 @@
 	int_hsdma = musb_readb(mbase, MUSB_HSDMA_INTR);
 	if (!int_hsdma)
 		goto done;
-
+#ifdef CONFIG_BLACKFIN
+	/* Clear DMA interrup flags */
+	musb_writeb(mbase, MUSB_HSDMA_INTR, int_hsdma);
+#endif
 	for (bchannel = 0; bchannel < MUSB_HSDMA_CHANNELS; bchannel++) {
 		if (int_hsdma & (1 << bchannel)) {
 			musb_channel = (struct musb_dma_channel *)
@@ -324,10 +327,6 @@
 		}
 	}
 
-#ifdef CONFIG_BLACKFIN
-	/* Clear DMA interrup flags */
-	musb_writeb(mbase, MUSB_HSDMA_INTR, int_hsdma);
-#endif
 
 	retval = IRQ_HANDLED;
 done:
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to