From: Ben Dooks Date: Mon, 16 Mar 2015 11:52:45 +0000 (+0000) Subject: dmaengine: pl330: fix return status on pending transfers X-Git-Tag: omap-for-v4.1/fixes-rc1~33^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75967b788c2898601620ce91ed14b4a9a371b6fe;p=pandora-kernel.git dmaengine: pl330: fix return status on pending transfers The pl330_tx_status() function returns the desc->status if the dma_cookie_status() call does indicate the cookie completed, however the desc->status is not look directly compatible. Sparse throws the following warning: pl330.c:2262:35: warning: mixing different enum types pl330.c:2262:35: int enum desc_status versus pl330.c:2262:35: int enum dma_status Attempt to fix this by adding a switch statement to turn the desc->status into a dma_status. Note, this has only been tested with the dmatest suite. Signed-off-by: Ben Dooks -- Vinod Koul Dan Williams DMA List Maxime Ripard Jassi Brar Liviu Dudau Linux ARM Kernel Signed-off-by: Vinod Koul --- Reading git-diff-tree failed