From: Chanho Min Date: Mon, 20 Feb 2012 01:24:40 +0000 (+0900) Subject: amba-pl011​/dma: Add check for the residue in DMA callback X-Git-Tag: v3.4-rc1~185^2~106 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dc01aa65306fe46b7ba38db51fad4ed81c23d00;p=pandora-kernel.git 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 Acked-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed