linux-uconsole/drivers/tty/hvc
Stephen Boyd 5e3092bd68 tty: hvc_dcc: Fix duplicate character inputs
commit c2a3e84f95 upstream.

Reading from the DCC grabs a character from the buffer and
clears the status bit. Since this is a context-changing
operation, instructions following the character read that rely on
the status bit being accurate need to be synchronized with an
ISB.

In this case, the status bit check needs to execute after the
character read otherwise we run the risk of reading the character
and checking the status bit before the read can clear the status
bit in the first place. When this happens, the user will see the
same character they typed twice, instead of once.

Add an ISB after the read and the write, so that the status check
is synchronized with the read/write operations.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-26 09:09:57 -08:00
..
hvc_beat.c
hvc_bfin_jtag.c hvc: add Blackfin JTAG console support 2011-02-17 11:12:40 -08:00
hvc_console.c hvc_console: Improve tty/console put_chars handling 2011-08-04 21:58:41 -07:00
hvc_console.h
hvc_dcc.c tty: hvc_dcc: Fix duplicate character inputs 2011-11-26 09:09:57 -08:00
hvc_irq.c
hvc_iseries.c
hvc_iucv.c Fix common misspellings 2011-03-31 11:26:23 -03:00
hvc_rtas.c
hvc_tile.c
hvc_udbg.c
hvc_vio.c Fix common misspellings 2011-03-31 11:26:23 -03:00
hvc_xen.c drivers: Final irq namespace conversion 2011-03-29 14:48:19 +02:00
hvcs.c Fix common misspellings 2011-03-31 11:26:23 -03:00
hvsi.c tiocmset: kill the file pointer argument 2011-02-17 11:52:43 -08:00
Kconfig tty: move Kconfig entries into drivers/tty from drivers/char 2011-02-22 15:41:47 -08:00
Makefile Merge 2.6.38-rc6 into tty-next 2011-02-24 11:36:31 -08:00