diff options
author | Michael Spang <spang@chromium.org> | 2013-03-28 03:34:25 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 03:04:19 +0400 |
commit | 38adbc54cea90e220c9212f961a621b2c6af9ae0 (patch) | |
tree | a9f87cf017db71038715f15e277d3a6f687a280d /net/unix/af_unix.c | |
parent | d09a7308e9887a83abfd3176f4416d4142a265dc (diff) | |
download | linux-38adbc54cea90e220c9212f961a621b2c6af9ae0.tar.xz |
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions