tty/serial: Fix break handling for PORT_TEGRA
authorStephen Warren <swarren@nvidia.com>
Tue, 17 May 2011 22:12:37 +0000 (16:12 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:51:02 +0000 (16:51 -0700)
commit5f873bae704cf8b7cbd64b5720912266286c9146
tree0e861218bdb25d0ad3f41aa569f89d0f56d59d18
parent4539c24fe4f92c09ee668ef959d3e8180df619b9
tty/serial: Fix break handling for PORT_TEGRA

When a break is received, Tegra's UART apparently fills the FIFO with
0 bytes. These must be drained so that they aren't interpreted as actual
data received. This allows e.g. MAGIC_SYSRQ to work on Tegra's UARTs.

v2: Added FIXME comment to clear_rx_fifo

Originally-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/8250.c
include/linux/serial_reg.h