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)
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>

No differences found