summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/Kconfig
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-01-13 10:00:26 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-02 10:11:24 -0800
commit934084a9d2d95d0ce98ae8d1ec3bfe81c95c678c (patch)
treeca28c2c469b8d9f7091f89c1575de278de24e3dc /drivers/tty/serial/Kconfig
parentbfc2e07f910891516c8eeef61859fa17369fea9f (diff)
serial: imx: Fix imx_flush_buffer()
When running an userspace program that does a 'tcflush(fd, TCIOFLUSH)' call we still see the last received character in the URXD register afterwards. Clear UCR2_SRST bit so that the UART FIFO is flushed properly. Since UCR2_SRST also resets some UART registers, we need to save and restore some of them. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Tested-by: Fugang Duan <B38611@freescale.com> Acked-by: Jason Liu <r64343@freecale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/Kconfig')
0 files changed, 0 insertions, 0 deletions