]> git.baikalelectronics.ru Git - kernel.git/commit
DMAENGINE: COH 901 318 fix bytesleft
authorLinus Walleij <linus.walleij@stericsson.com>
Thu, 4 Mar 2010 13:40:30 +0000 (14:40 +0100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 24 Mar 2010 21:24:44 +0000 (14:24 -0700)
commit314bbbac8a0e9924e305b5dd7ce93af18eb8809b
tree7b91a03a61044612d511283e03f545893ba8c464
parent3e8a528b1578ced800e009d1f5a28e809ef351cc
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