spi: pl022: Remove incorrect TxFIFO full reporting
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 27 Feb 2015 15:30:01 +0000 (16:30 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2015 19:45:17 +0000 (19:45 +0000)
According to PL022 specification, TNF bit states for "Transmit FIFO Not full".
So the logic here is inverted. But "Receive Overrun Interrupt", which is handled
here, is only triggered on Rx errors. So instead of fixing the if statement,
remove the whole message.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pl022.c

index 89ca162801da10b8ec7a9c4311a33344f6a438a7..4381fcf2389c2ae45404c8710ee4e9f33311ac49 100644 (file)
@@ -1280,9 +1280,6 @@ static irqreturn_t pl022_interrupt_handler(int irq, void *dev_id)
                if (readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RFF)
                        dev_err(&pl022->adev->dev,
                                "RXFIFO is full\n");
-               if (readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_TNF)
-                       dev_err(&pl022->adev->dev,
-                               "TXFIFO is full\n");
 
                /*
                 * Disable and clear interrupts, disable SSP,