From: Andy Shevchenko Date: Mon, 9 Mar 2015 14:48:46 +0000 (+0200) Subject: spi: dw-mid: split dma_setup() from dma_transfer() X-Git-Tag: omap-for-v4.1/fixes-rc1~176^2~4^4~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f14538ecd1a210eff244a0a2281f6744fe4a59d;p=pandora-kernel.git spi: dw-mid: split dma_setup() from dma_transfer() The patch splits DMA preparatory code to dma_setup() callback. The change also converts transfer_one() to program DMA whenever the transfer is DMA mapped. The change is a follow up of the converion to use SPI core transfer_one_message(). Since the DMA mapped transfers can be interleaved with PIO ones the DMA related configuration should respect that. Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- Reading git-diff-tree failed