]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: OMAP: ensure FIFO levels are set correctly in non-DMA mode
authorPaul Walmsley <paul@pwsan.com>
Sat, 21 Jan 2012 07:27:40 +0000 (00:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 22:11:07 +0000 (14:11 -0800)
commitc6bf70682564fa12219a904289e49fe861e3129f
treee1558fc3fe171d9e30394afe90982aa69733e449
parent12f347ab85bc01c0ca5199a07931c6ae213dd9b7
tty: serial: OMAP: ensure FIFO levels are set correctly in non-DMA mode

Ensure FIFO levels are set correctly in non-DMA mode (the default).
This patch will cause a receive FIFO threshold interrupt to be raised when
there is at least one byte in the RX FIFO.  It will also cause a transmit
FIFO threshold interrupt when there is only one byte remaining in the TX
FIFO.

These changes fix the receive interrupt problem and part of the
transmit interrupt problem.  A separate set of issues must be worked
around for the transmit path to have a basic level of functionality; a
subsequent patch will address these.

DMA operation is unaffected by this patch.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Govindraj Raja <govindraj.r@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/omap-serial.c