summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorSteven J. Magnani <steve@digidescorp.com>2010-02-25 22:39:30 +0300
committerDan Williams <dan.j.williams@intel.com>2010-03-01 06:27:42 +0300
commit6ca3a7a96e91b1aa8c704153c992b191d35b5747 (patch)
tree4700e2eecbae9e33492df683d11e5366f16aeca2 /drivers/dma
parent9ad7bd2944bd979ef4877cd439719be44c5f3b47 (diff)
downloadlinux-6ca3a7a96e91b1aa8c704153c992b191d35b5747.tar.xz
fsldma: Fix cookie issues
fsl_dma_tx_submit() only sets the cookie on the first descriptor of a transaction. It should set the cookie on all. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Acked-by: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/fsldma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 92efa87258b9..6541ebf8bf63 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -362,7 +362,7 @@ static dma_cookie_t fsl_dma_tx_submit(struct dma_async_tx_descriptor *tx)
if (cookie < 0)
cookie = 1;
- desc->async_tx.cookie = cookie;
+ child->async_tx.cookie = cookie;
}
chan->common.cookie = cookie;