]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 8250_omap: add custom DMA-RX callback
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 29 Sep 2014 18:06:44 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:10:07 +0000 (19:10 -0800)
commitf0955be5769eaa95b27eabc8f9737df386c3adff
tree3d1668cd4f76f8a7fa76c49cfbf22ad9d4697196
parentc89c4e74dfa7f9d88018c3e780ec53d85e9a8baa
tty: serial: 8250_omap: add custom DMA-RX callback

The omap needs a DMA request pending right away. If it is
enqueued once the bytes are in the FIFO then nothing will happen
and the FIFO will be later purged via RX-timeout interrupt.
This patch enqueues RX-DMA request on completion but not if it
was aborted on error. The first enqueue will happen in the driver
in startup.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c