[PATCH 3/8] spi: sirf: enable RX_IO_DMA_INT interrupt
broonie at kernel.org
Thu Sep 4 12:27:14 PDT 2014
On Tue, Sep 02, 2014 at 05:01:03PM +0800, Barry Song wrote:
> 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.
This changelog says we must check the status in the interrupt handler
> writel(SIRFSOC_SPI_TXFIFO_EMPTY_INT_EN |
> SIRFSOC_SPI_TX_UFLOW_INT_EN |
> - SIRFSOC_SPI_RX_OFLOW_INT_EN,
> + SIRFSOC_SPI_RX_OFLOW_INT_EN |
> + SIRFSOC_SPI_RX_IO_DMA_INT_EN,
> sspi->base + SIRFSOC_SPI_INT_EN);
> writel(SIRFSOC_SPI_RX_EN | SIRFSOC_SPI_TX_EN,
> sspi->base + SIRFSOC_SPI_TX_RX_EN);
...the change is actually just unmasking a bit in the interrupt mask
register and doesn't add anything to the interrupt handler? Looking at
the code it seems that the actual issue is that the mask register causes
the interrupt handler not to see the mask bit since the mask not only
disables the interrupt but also causes the bit not to report in the
That makes sense so I've applied this but please try to be clear about
things like this, it's hard to review code where the changelog doesn't
clearly match the code.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the linux-arm-kernel