From: Ira Snyder Date: Thu, 3 Mar 2011 07:54:59 +0000 (+0000) Subject: fsldma: support async_tx dependencies and automatic unmapping X-Git-Tag: v2.6.39-rc1~203^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c4d1e7bdeb1ed4dc0c3341d40662a6fbc5f2dc2;p=pandora-kernel.git fsldma: support async_tx dependencies and automatic unmapping Previous to this patch, the dma_run_dependencies() function has been called while holding desc_lock. This function can call tx_submit() for other descriptors, which may try to re-grab the lock. Avoid this by moving the descriptors to be cleaned up to a temporary list, and dropping the lock before cleanup. At the same time, add support for automatic unmapping of src and dst buffers, as offered by the DMAEngine API. Signed-off-by: Ira W. Snyder Signed-off-by: Dan Williams --- Reading git-diff-tree failed