Message ID | 1397457001-5266-2-git-send-email-21cnbao@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 818e91625aa17161cd6b39a4d08b77c984f0f485 |
Headers | show |
On Mon, Apr 14, 2014 at 02:29:57PM +0800, Barry Song wrote: > From: Qipan Li <Qipan.Li@csr.com> > > 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. Applied, thanks.
diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c index 1a77ad5..51d7c98 100644 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c @@ -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)