DMAENGINE: COH 901 318 fix bytesleft
commit84c8447c544bc7579097649273bc3f4e1b5de6af
authorLinus Walleij <linus.walleij@stericsson.com>
Thu, 4 Mar 2010 13:40:30 +0000 (4 14:40 +0100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 24 Mar 2010 21:24:44 +0000 (24 14:24 -0700)
tree7b91a03a61044612d511283e03f545893ba8c464
parentcecd87da83869ad4157295b87a2e51e38c3e03bf
DMAENGINE: COH 901 318 fix bytesleft

This makes the function to get the number of bytes left in the
ongoing DMA transaction actually work: the old code did not take
neither lli:s nor queued jobs into account. Also fix a missing
spinlock while we're at it.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/coh901318.c