Title: [5819] trunk/arch/blackfin/include/asm/dma.h: cannot simply OR the ndsize ...
- Revision
- 5819
- Author
- vapier
- Date
- 2008-12-04 18:59:02 -0600 (Thu, 04 Dec 2008)
Log Message
cannot simply OR the ndsize ... need to clear out the old value first
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/dma.h (5818 => 5819)
--- trunk/arch/blackfin/include/asm/dma.h 2008-12-04 20:34:29 UTC (rev 5818)
+++ trunk/arch/blackfin/include/asm/dma.h 2008-12-05 00:59:02 UTC (rev 5819)
@@ -205,7 +205,9 @@
static inline void set_dma_sg(unsigned int channel, struct dmasg *sg, int ndsize)
{
- dma_ch[channel].regs->cfg |= ((ndsize & 0x0F) << 8);
+ dma_ch[channel].regs->cfg =
+ (dma_ch[channel].regs->cfg & ~(0xf << 8)) |
+ ((ndsize & 0xf) << 8);
dma_ch[channel].regs->next_desc_ptr = sg;
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits