]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DMAENGINE: ste_dma40: fix desc_get
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 6 Oct 2010 08:20:37 +0000 (08:20 +0000)
committerDan Williams <dan.j.williams@intel.com>
Thu, 7 Oct 2010 21:54:55 +0000 (14:54 -0700)
commita2c15fa4c122558472f8041515072218c8652c7e
treef4758cff216bd64a3ddff6e73d40cf2ffc8068c9
parentc6134c967c5b8b5986371de335fa4ec39de268bc
DMAENGINE: ste_dma40: fix desc_get

Fix desc_get to alloc a descriptor from the cache if the ones in the
list are waiting for the ack.  Also, memzero the descriptor when
allocated from the list to ensure all fields are cleared.

Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ste_dma40.c