fsldma: snooping is not enabled for last entry in descriptor chain
authorIra Snyder <iws@ovro.caltech.edu>
Fri, 15 May 2009 18:33:20 +0000 (11:33 -0700)
committerLi Yang <leoli@freescale.com>
Fri, 22 May 2009 08:53:56 +0000 (16:53 +0800)
commit776c8943f2766f2819fafd88fdfbaf418ecd6e41
tree6309f7faa86f2c0f7b843b9263ccc13bf379ec64
parentbcfb7465c03a8c62c89da374677df56f6b894d44
fsldma: snooping is not enabled for last entry in descriptor chain

On the 83xx controller, snooping is necessary for the DMA controller to
ensure cache coherence with the CPU when transferring to/from RAM.

The last descriptor in a chain will always have the End-of-Chain interrupt
bit set, so we can set the snoop bit while adding the End-of-Chain
interrupt bit.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Li Yang <leoli@freescale.com>
drivers/dma/fsldma.c