Chanho Min 6dc01aa653 amba-pl011​/dma: Add check for the residue in DMA callback
In DMA-operated uart, I found that rx data can be taken by the UART
interrupts during the DMA irq handler. pl011_int is occurred just
before it goes inside spin_lock_irq. When it returns to the callback,
DMA buffer already has been flushed. Then, pl011_dma_rx_chars gets
invalid data. So I add check for the residue as the patch bellow.

Signed-off-by: Chanho Min <chanho.min@lge.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-24 13:50:47 -08:00
..
2012-01-26 17:14:50 -08:00
2011-09-22 16:08:57 -07:00
2011-07-26 16:49:47 -07:00
2011-09-22 16:08:57 -07:00
2011-09-22 16:08:57 -07:00
2011-03-31 11:26:23 -03:00
2011-11-08 10:10:20 -08:00
2011-12-09 19:11:35 -08:00
2012-02-02 15:09:47 -08:00
2012-02-02 15:10:46 -08:00
2011-03-31 11:26:23 -03:00
2012-02-02 15:10:46 -08:00
2011-08-23 10:34:07 -07:00