kernel-fxtec-pro1x/drivers/s390/char
Christian Borntraeger 59eb1ca7a8 [S390] sclp_vt220: Fix vt220 initialization
There are two problems in the vt220 intialization:

o Currently the vt220 console looses early printk events until the
  the vt220 tty is registered.
o console should work if tty_register fails

sclp_vt220_con_init calls __sclp_vt220_init and register_console.
It does not register the driver with the sclp core code via
sclp_register. That results in an sclp_send_mask=0. Therefore,
__sclp_vt220_emit will reject buffers with EIO. Unfortunately
register_console will cause the printk buffer to be sent to the
console and, therefore, every early message gets dropped. The
sclp_send_mask is set later during boot, when sclp_vt220_tty_init
calls sclp_register.

The solution is to move the sclp_register call from sclp_vt220_tty_init
to __sclp_vt220_init. This makes sure that the console is properly
registered with the sclp subsystem before the first log buffer messages
are passed to the vt220 console.

We also adopt the cleanup on error to keep the console alive if
tty_register fails.

Thanks to Peter Oberparleiter and Heiko Carstens for review and ideas
for improvement.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2008-02-09 18:24:39 +01:00
..
con3215.c
con3270.c
ctrlchar.c
ctrlchar.h
defkeymap.c unicode diacritics support 2007-10-17 08:42:52 -07:00
defkeymap.map
fs3270.c
Kconfig
keyboard.c unicode diacritics support 2007-10-17 08:42:52 -07:00
keyboard.h unicode diacritics support 2007-10-17 08:42:52 -07:00
Makefile [S390] sclp: convert channel path configure code to use sync interface. 2008-01-26 14:11:10 +01:00
monreader.c
monwriter.c [S390] drivers/s390: Add missing "space" 2008-01-26 14:11:19 +01:00
raw3270.c [S390] use LIST_HEAD instead of LIST_HEAD_INIT 2008-01-26 14:11:21 +01:00
raw3270.h
sclp.c
sclp.h [S390] Standby cpu activation/deactivation. 2008-01-26 14:11:09 +01:00
sclp_cmd.c [S390] Get rid of additional_cpus kernel parameter. 2008-01-26 14:11:15 +01:00
sclp_con.c
sclp_config.c cpu-hotplug: replace lock_cpu_hotplug() with get_online_cpus() 2008-01-25 21:08:02 +01:00
sclp_cpi.c [S390] sclp: sysfs interface for SCLP cpi 2008-01-26 14:11:08 +01:00
sclp_cpi_sys.c [S390] sclp: sysfs interface for SCLP cpi 2008-01-26 14:11:08 +01:00
sclp_cpi_sys.h [S390] sclp: sysfs interface for SCLP cpi 2008-01-26 14:11:08 +01:00
sclp_quiesce.c
sclp_rw.c [S390] drivers/s390/: Spelling fixes 2008-01-26 14:11:26 +01:00
sclp_rw.h
sclp_sdias.c
sclp_tty.c [S390] sclp_tty/sclp_vt220: Fix scheduling while atomic 2008-02-05 16:51:00 +01:00
sclp_tty.h
sclp_vt220.c [S390] sclp_vt220: Fix vt220 initialization 2008-02-09 18:24:39 +01:00
tape.h
tape_34xx.c
tape_3590.c [S390] drivers/s390/: Spelling fixes 2008-01-26 14:11:26 +01:00
tape_3590.h
tape_block.c blk_end_request: changing s390 (take 4) 2008-01-28 10:36:54 +01:00
tape_char.c
tape_class.c [S390] struct class_device -> struct device conversion. 2007-10-22 12:52:48 +02:00
tape_class.h [S390] struct class_device -> struct device conversion. 2007-10-22 12:52:48 +02:00
tape_core.c [S390] use LIST_HEAD instead of LIST_HEAD_INIT 2008-01-26 14:11:21 +01:00
tape_proc.c [S390] constify function pointer tables. 2008-01-26 14:11:32 +01:00
tape_std.c
tape_std.h
tty3270.c
tty3270.h
vmcp.c
vmcp.h
vmlogrdr.c [S390] drivers/s390: Add missing "space" 2008-01-26 14:11:19 +01:00
vmur.c [S390] constify function pointer tables. 2008-01-26 14:11:32 +01:00
vmur.h
vmwatchdog.c
zcore.c [S390] constify function pointer tables. 2008-01-26 14:11:32 +01:00