diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-01-08 19:17:05 -0200 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-01-15 21:19:03 -0600 |
commit | 02b3e360d7b8eaa01c3cebf03f7616c5de43cd88 (patch) | |
tree | 45bfe5f53e038369f1a2e4cabf8bd0ac72bf7163 /arch/arm/boot | |
parent | 0d1dbd081faac359ff437e00e4234d689908f35c (diff) |
MLK-10080 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 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>
Diffstat (limited to 'arch/arm/boot')
0 files changed, 0 insertions, 0 deletions