From: Dan Williams Date: Tue, 6 Jan 2009 18:38:14 +0000 (-0700) Subject: dmaengine: centralize channel allocation, introduce dma_find_channel X-Git-Tag: v2.6.29-rc1~39^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec085134e446577a983f17f57d642a88d1af53b;p=pandora-kernel.git dmaengine: centralize channel allocation, introduce dma_find_channel Allowing multiple clients to each define their own channel allocation scheme quickly leads to a pathological situation. For memory-to-memory offload all clients can share a central allocator. This simply moves the existing async_tx allocator to dmaengine with minimal fixups: * async_tx.c:get_chan_ref_by_cap --> dmaengine.c:nth_chan * async_tx.c:async_tx_rebalance --> dmaengine.c:dma_channel_rebalance * split out common code from async_tx.c:__async_tx_find_channel --> dma_find_channel Reviewed-by: Andrew Morton Signed-off-by: Dan Williams --- Reading git-diff-tree failed