diff options
author | Steven J. Magnani <steve@digidescorp.com> | 2010-02-25 14:39:30 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-02-28 22:27:42 -0500 |
commit | 6ca3a7a96e91b1aa8c704153c992b191d35b5747 (patch) | |
tree | 4700e2eecbae9e33492df683d11e5366f16aeca2 | |
parent | 9ad7bd2944bd979ef4877cd439719be44c5f3b47 (diff) |
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>
-rw-r--r-- | drivers/dma/fsldma.c | 2 |
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) | |||
362 | if (cookie < 0) | 362 | if (cookie < 0) |
363 | cookie = 1; | 363 | cookie = 1; |
364 | 364 | ||
365 | desc->async_tx.cookie = cookie; | 365 | child->async_tx.cookie = cookie; |
366 | } | 366 | } |
367 | 367 | ||
368 | chan->common.cookie = cookie; | 368 | chan->common.cookie = cookie; |