Title: [6869] trunk/arch/blackfin/kernel/bfin_dma_5xx.c: [#5274] check the destination dma status, not the source dma status
- Revision
- 6869
- Author
- vapier
- Date
- 2009-06-29 17:45:50 -0500 (Mon, 29 Jun 2009)
Log Message
[#5274] check the destination dma status, not the source dma status
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/bfin_dma_5xx.c (6868 => 6869)
--- trunk/arch/blackfin/kernel/bfin_dma_5xx.c 2009-06-29 22:45:03 UTC (rev 6868)
+++ trunk/arch/blackfin/kernel/bfin_dma_5xx.c 2009-06-29 22:45:50 UTC (rev 6869)
@@ -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