]> git.baikalelectronics.ru Git - kernel.git/commit
serial: samsung: Avoid waiting forever for TX ready
authorMichael Spang <spang@chromium.org>
Wed, 27 Mar 2013 23:34:25 +0000 (19:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 23:04:19 +0000 (16:04 -0700)
commit13d51b132d61f10f429ed6996a5d76218c6a00aa
treea9f87cf017db71038715f15e277d3a6f687a280d
parent2a73fcf13df94fed4f95b81a2cbbe83086dc593c
serial: samsung: Avoid waiting forever for TX ready

The no_console_suspend option allows the console to write to the UART
during early resume, before the serial port itself is resumed. Such
writes hang indefinitely waiting for TX ready.

This adds a check to the console putchar function to drop characters
instead of hanging if the port hasn't been initialized. That way, we
can use no_console_suspend without risk of hanging.

Signed-off-by: Michael Spang <spang@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c