Thread (2 messages) 2 messages, 2 authors, 2012-02-20

Re: [PATCH] amba-pl011​/dma: Add check for the residue in DMA callback

From: Linus Walleij <hidden>
Date: 2012-02-20 08:31:24
Also in: lkml

On Mon, Feb 20, 2012 at 2:24 AM, Chanho Min [off-list ref] 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@lge.com>
Looks correct!
Acked-by: Linus Walleij <redacted>

Thanks,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help