On Mon, Feb 20, 2012 at 2:24 AM, Chanho Min <chanho0207@xxxxxxxxx> wrote: > 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@xxxxxxx> Looks correct! Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Thanks, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html