linux/drivers/tty/hvc
Anton Blanchard 19df9abdd3 powerpc/pseries: Fix hvterm_raw_get_chars to accept < 16 chars, fixing xmon
commit 4d2bb3f500 (powerpc/pseries: Re-implement HVSI as part of
hvc_vio) changed udbg_getc to be based on hvterm_raw_get_chars.
Unfortunately hvterm_raw_get_chars returns -EAGAIN if you ask
for anything less than 16 characters. As a result xmon no longer
accepts input and prints a stream of junk to the screen.

The recent change highlights a problem that xmon on pseries VIO
has had all along, that it can drop input characters. The issue
is the hypervisor call does not take a count argument and can
return up to 16 characters.

This patch adds a per vterm buffer that we copy input data into
and give it out as requested.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-07-19 15:13:07 +10: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-07-19 15:13:05 +10:00
hvc_console.h powerpc/pseries: Re-implement HVSI as part of hvc_vio 2011-06-29 17:48:35 +10:00
hvc_dcc.c hvc_dcc: Simplify assembly for v6 and v7 ARM 2011-02-03 16:05:43 -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 powerpc/pseries: Fix hvterm_raw_get_chars to accept < 16 chars, fixing xmon 2011-07-19 15:13:07 +10: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_lib.c powerpc/hvsi: Fix conflict with old HVSI driver 2011-07-01 13:10:21 +10:00
hvsi.c powerpc/pseries: Factor HVSI header struct in packet definitions 2011-06-29 17:48:30 +10:00
Kconfig powerpc/pseries: Re-implement HVSI as part of hvc_vio 2011-06-29 17:48:35 +10:00
Makefile powerpc/pseries: Move hvsi support into a library 2011-06-29 17:48:37 +10:00