u-boot/drivers/serial
Simon Goldschmidt 6f57c34473 serial: ns16550: fix debug uart putc called before init
If _debug_uart_putc() is called before _debug_uart_init(), the
ns16550 debug uart driver hangs in a tight loop waiting for the
tx FIFO to get empty.

As this can happen via a printf sneaking in before the port calls
debug_uart_init(), let's rather ignore characters before the debug
uart is initialized.

This is done by reading the baudrate divisor and aborting if is zero.

Tested on socfpga_cyclone5_socrates.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
2018-11-14 09:16:28 -08:00
..
altera_jtag_uart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
altera_uart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arm_dcc.c serial: arm_dcc: Add DCC support for V7R based cores 2018-09-10 20:48:20 -04:00
atmel_usart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel_usart.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig serial: Allow serial to be absent in TPL 2018-10-09 04:40:27 -06:00
lpc32xx_hsuart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile serial: omap: Introduce DM specific omap serial 2018-09-10 21:19:32 -04:00
mcfuart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ns16550.c serial: ns16550: fix debug uart putc called before init 2018-11-14 09:16:28 -08:00
sandbox.c sandbox: Restore blocking I/O on exit 2018-10-09 04:40:27 -06:00
serial-uclass.c dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt() 2018-11-14 09:16:27 -08:00
serial.c drivers: serial: document on_baudrate() 2018-08-10 13:45:32 -04:00
serial_ar933x.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_arc.c serial/serial_arc: Implement debug serial 2018-05-24 15:59:17 +03:00
serial_bcm283x_mu.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_bcm283x_pl011.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_bcm6345.c serial: bcm6345: convert to use live dt 2018-06-01 15:56:02 +02:00
serial_efi.c efi_loader: struct efi_simple_text_input_protocol 2018-09-23 21:55:29 +02:00
serial_intel_mid.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_linflexuart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_lpuart.c serial: lpuart: support uclass clk api 2018-10-22 12:59:02 +02:00
serial_meson.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_mpc8xx.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_msm.c serial: serial_msm: added pinmux & config 2018-05-26 18:19:17 -04:00
serial_mvebu_a3700.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_mxc.c serial: mxc: Add match string for i.mx6 quad/dual lite serial 2018-10-22 18:56:17 +02:00
serial_ns16550.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_nulldev.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_omap.c serial: omap: Add support for AM654 uart controller 2018-09-25 21:50:34 -04:00
serial_owl.c serial: Add Actions Semi OWL UART support 2018-07-09 15:25:39 -04:00
serial_pic32.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_pl01x.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_pl01x_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_pxa.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_rockchip.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_s5p.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_sh.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_sh.h serial: sh: Add support for R7S72100 (RZ/A1) 2018-01-24 23:27:21 +01:00
serial_sti_asc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_stm32.c serial: stm32: Replace setparity by setconfig 2018-09-10 20:20:38 -04:00
serial_stm32.h serial: serial_stm32: Enable uart FIFO for STM32F7xx SoCs 2018-09-30 13:00:35 -04:00
serial_uniphier.c serial: uniphier: set clock rate without clock-frequency property 2018-06-23 01:28:15 +09:00
serial_xuartlite.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_zynq.c serial: zynq: Use platdata for storing static data instead of priv 2018-07-19 10:49:54 +02:00
usbtty.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usbtty.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00