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
..
2018-10-28 09:26:39 -04:00
2018-09-29 11:47:32 -04:00
2018-10-28 09:26:39 -04:00
2018-07-23 14:33:21 -04:00
2018-11-14 09:16:27 -08:00
2018-10-28 09:26:39 -04:00
2018-10-19 14:16:43 -04:00
2018-11-05 10:41:58 -06:00
2018-11-14 09:16:28 -08:00
2018-11-14 09:16:27 -08:00
2018-05-07 09:34:12 -04:00
2018-09-15 03:17:01 +02:00
2018-05-07 09:34:12 -04:00
2018-11-13 18:53:10 +05:30
2018-05-07 09:34:12 -04:00
2018-10-28 09:26:39 -04:00
2018-09-29 11:49:35 -06:00
2018-10-31 01:41:10 +01:00
2018-11-14 10:59:23 -05:00
2018-10-25 10:16:21 -04:00
2018-10-09 04:40:27 -06:00
2018-08-10 10:27:32 -04:00
2018-10-28 09:26:39 -04:00
2018-05-07 09:34:12 -04:00
2018-11-14 09:16:28 -08:00
2018-11-14 09:16:27 -08:00
2018-11-13 18:53:10 +05:30
2018-11-05 10:42:01 -06:00
2018-11-14 09:16:27 -08:00
2018-05-07 09:34:12 -04:00
2018-11-14 09:16:28 -08:00
2018-05-07 09:34:12 -04:00
2018-10-28 09:26:39 -04:00
2018-11-02 15:57:13 +01:00
2018-11-01 10:02:43 -04:00
2018-10-24 21:57:16 +05:30
2018-09-27 10:01:27 -07:00
2018-10-28 09:26:39 -04:00
2018-09-11 08:32:55 -04:00
2018-10-28 09:26:39 -04:00
2018-10-10 13:35:17 -04:00
2018-11-14 09:16:27 -08:00
2018-11-14 09:16:28 -08:00
2018-07-19 16:31:38 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-16 16:53:21 +02:00
2018-05-07 09:34:12 -04:00
2018-10-09 04:40:27 -06:00
2018-10-07 11:04:01 -04:00
2018-05-07 09:34:12 -04:00
2018-11-14 09:16:27 -08:00
2018-10-09 04:40:27 -06:00
2018-10-29 13:13:05 -07:00
2018-10-29 11:21:00 -04:00
2018-11-14 09:16:28 -08:00
2018-11-01 10:02:10 -04:00
2018-11-01 10:02:10 -04:00
2018-10-25 10:16:21 -04:00
2018-11-14 09:16:27 -08:00
2018-11-14 09:16:27 -08:00