From: Timur Tabi Date: Fri, 19 Sep 2008 11:16:19 +0000 (-0700) Subject: dmatest: properly handle duplicate DMA channels X-Git-Tag: v2.6.28-rc1~84^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b3141962dc82cfe1c30afdf91d564b309859cbe;p=pandora-kernel.git dmatest: properly handle duplicate DMA channels Update the the dmatest driver so that it handles duplicate DMA channels properly. When a DMA client is notified of an available DMA channel, it must check if it has already allocated resources for that channel. If so, it should return DMA_DUP. This can happen, for example, if a DMA driver calls dma_async_device_register() more than once. Acked-by: Haavard Skinnemoen Signed-off-by: Timur Tabi Signed-off-by: Dan Williams --- Reading git-diff-tree failed