]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: sprd: Add the SPI irq function for the SPI DMA mode
authorLanqing Liu <lanqing.liu@unisoc.com>
Wed, 13 Feb 2019 07:36:09 +0000 (15:36 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Feb 2019 12:20:28 +0000 (12:20 +0000)
commitde082d866cced9e172ca909b084f91df631ae7fe
tree26f0736685d0524da8de9f1a756dd1c6d0103cdb
parent97a6a2ddc2ea684fadd1021dd350c27d03113397
spi: sprd: Add the SPI irq function for the SPI DMA mode

The SPI irq event will use to complete the SPI work in the SPI DMA mode,
so this patch is a preparation for the following DMA mode support.

Moreover the SPI interrupt can be fired when removing the SPI controller,
so we should make sure the SPI controller has stopped the queue in
remove function before freeing the SPI irq.

Signed-off-by: Lanqing Liu <lanqing.liu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd.c