OSDN Git Service

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)
commit0a697b22252c9d7208b5fb3e9fbd124dd229f1d2
treee1558fc3fe171d9e30394afe90982aa69733e449
parentb5148856a2f732e7e99edad22bb8e2037af28ad3
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