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)
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>

No differences found