fsldma: Fix cookie issues
authorSteven J. Magnani <steve@digidescorp.com>
Mon, 1 Mar 2010 05:18:16 +0000 (22:18 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 1 Mar 2010 05:18:16 +0000 (22:18 -0700)
commit76bd061f5c7b7550cdaed68ad6219ea7cee288fc
tree5ae663b8bab6bd77cab2b8bc095c0743cc2da138
parent6ca3a7a96e91b1aa8c704153c992b191d35b5747
fsldma: Fix cookie issues

fsl_dma_update_completed_cookie() appears to calculate the last completed
cookie incorrectly in the corner case where DMA on cookie 1 is in progress
just following a cookie wrap.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Acked-by: Ira W. Snyder <iws@ovro.caltech.edu>
[dan.j.williams@intel.com: fix an integer overflow warning with INT_MAX]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/fsldma.c
include/linux/dmaengine.h