Title: [6871] branches/2009R1/drivers/usb/musb/musbhsdma.c: bug[#5267]the interrupt pending bits should be cleared at the beginning of ISR
Revision
6871
Author
cliff
Date
2009-06-30 00:54:38 -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: branches/2009R1/drivers/usb/musb/musbhsdma.c (6870 => 6871)


--- branches/2009R1/drivers/usb/musb/musbhsdma.c	2009-06-30 00:30:31 UTC (rev 6870)
+++ branches/2009R1/drivers/usb/musb/musbhsdma.c	2009-06-30 05:54:38 UTC (rev 6871)
@@ -256,7 +256,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 *)
@@ -314,10 +317,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