mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
spi: sirf: correct TXFIFO empty interrupt status bit
the old code uses wrong marco - SIRFSOC_SPI_FIFO_FULL is not for FIFO interrupt status, it is for FIFO status. here in the ISR, SIRFSOC_SPI_TXFIFO_EMPTY is the right bit for SPI TXFIFO interrupt status. Signed-off-by: Qipan Li <Qipan.Li@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
c9eaa447e7
commit
818e91625a
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ static irqreturn_t spi_sirfsoc_irq(int irq, void *dev_id)
|
|||
sspi->left_rx_word)
|
||||
sspi->rx_word(sspi);
|
||||
|
||||
if (spi_stat & (SIRFSOC_SPI_FIFO_EMPTY
|
||||
| SIRFSOC_SPI_TXFIFO_THD_REACH))
|
||||
if (spi_stat & (SIRFSOC_SPI_TXFIFO_EMPTY |
|
||||
SIRFSOC_SPI_TXFIFO_THD_REACH))
|
||||
while (!((readl(sspi->base + SIRFSOC_SPI_TXFIFO_STATUS)
|
||||
& SIRFSOC_SPI_FIFO_FULL)) &&
|
||||
sspi->left_tx_word)
|
||||
|
|
Loading…
Reference in a new issue