Title: [6868] branches/2009R1/arch/blackfin/kernel/bfin_dma_5xx.c: [#5274] check the destination dma status, not the source dma status
Revision
6868
Author
vapier
Date
2009-06-29 17:45:03 -0500 (Mon, 29 Jun 2009)

Log Message

[#5274] check the destination dma status, not the source dma status

Modified Paths

Diff

Modified: branches/2009R1/arch/blackfin/kernel/bfin_dma_5xx.c (6867 => 6868)


--- branches/2009R1/arch/blackfin/kernel/bfin_dma_5xx.c	2009-06-29 20:22:16 UTC (rev 6867)
+++ branches/2009R1/arch/blackfin/kernel/bfin_dma_5xx.c	2009-06-29 22:45:03 UTC (rev 6868)
@@ -270,11 +270,11 @@
 			src_ch = (struct dma_register *)MDMA_S1_NEXT_DESC_PTR;
 		}
 
-		if (!bfin_read16(&src_ch->cfg)) {
+		if (!bfin_read16(&dst_ch->cfg)) {
 			break;
 		} else {
-			if (bfin_read16(&src_ch->irq_status) & DMA_DONE)
-				bfin_write16(&src_ch->cfg, 0);
+			if (bfin_read16(&dst_ch->irq_status) & DMA_DONE)
+				bfin_write16(&dst_ch->cfg, 0);
 		}
 
 	}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to