9
0
Fork 0
barebox/drivers/serial
Sascha Hauer 4b8750c956 uart drivers: use xzalloc instead of xmalloc
The flags in struct console_device have to be initialized
to zero. Otherwise the following can happen:

- console_register sets the initial baudrate of a new console
  before we set the global console init state to CONSOLE_INIT_FULL.
- In console_baudrate_set we test whether the current console is
  active which may be true because of unitialized flags.
- we then call getc() to wait for the user to accept the new settings
  and we are stuck because of the CONSOLE_UNINITIALIZED state
  we will never get anything from getc().

Looking back this explains some cases for me when barebox refused
to start and I really wonder why this did not become a more visible
problem before.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-23 11:15:44 +01:00
..
Kconfig arm/mach-pxa: Initial Intel/Marvell PXA support 2011-12-05 09:30:27 +01:00
Makefile arm/mach-pxa: Initial Intel/Marvell PXA support 2011-12-05 09:30:27 +01:00
amba-pl011.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
arm_dcc.c arm_dcc: fix missing switch to resource 2011-08-10 14:53:06 +02:00
atmel.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
linux_console.c [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach 2009-10-22 14:21:29 +02:00
serial_altera.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
serial_altera_jtag.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
serial_at91rm9200.c introduce io.h 2011-09-22 19:03:05 +02:00
serial_blackfin.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
serial_imx.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
serial_mpc5xxx.c remove EARLY_INIT and EARLY_CONSOLE support 2011-09-27 10:27:18 +02:00
serial_netx.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
serial_ns16550.c introduce io.h 2011-09-22 19:03:05 +02:00
serial_ns16550.h serial_ns16550: remove legacy code copied from U-Boot v1 2011-07-17 17:42:21 +02:00
serial_pl010.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
serial_pl010.h Add PrimeCell PL010 serial driver 2010-01-14 10:04:13 +01:00
serial_pxa.c arm/mach-pxa: Initial Intel/Marvell PXA support 2011-12-05 09:30:27 +01:00
serial_s3c24x0.c uart drivers: use xzalloc instead of xmalloc 2011-12-23 11:15:44 +01:00
stm-serial.c introduce io.h 2011-09-22 19:03:05 +02:00