]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: sirf: enable RX_IO_DMA_INT interrupt
authorQipan Li <Qipan.Li@csr.com>
Tue, 2 Sep 2014 09:01:03 +0000 (17:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:09 +0000 (13:41 -0700)
commit30b9f42a25842ddcb389ee917a2f95348cfa550a
treef368b269852d3f277fb812e182f41f80147ef184
parent2ac3e493a3e353d0fc1b69ead7952d436638453f
spi: sirf: enable RX_IO_DMA_INT interrupt

commit f2a08b404691ef3e7be6ce81c185335cfc68b6db upstream.

in spi interrupt handler, we need check RX_IO_DMA status to ensure
rx fifo have received the specify count data.

if not set, the while statement in spi isr function will keep loop,
at last, make the kernel hang.

[The code is actually there in the interrupt handler but apparently it
needs the interrupt unmasking so the handler sees the status -- broonie]

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-sirf.c