summaryrefslogtreecommitdiffstats
path: root/drivers/tty/pty.c
diff options
context:
space:
mode:
authorChanho Min <chanho0207@gmail.com>2012-02-20 02:24:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 22:50:47 +0100
commit6dc01aa65306fe46b7ba38db51fad4ed81c23d00 (patch)
treecad255d51a09c900062d9dbd2db07432dc4b5b19 /drivers/tty/pty.c
parentserial: samsung: fix s3c2442 platform data (diff)
downloadlinux-6dc01aa65306fe46b7ba38db51fad4ed81c23d00.tar.xz
linux-6dc01aa65306fe46b7ba38db51fad4ed81c23d00.zip
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>
Diffstat (limited to 'drivers/tty/pty.c')
0 files changed, 0 insertions, 0 deletions