diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-09-26 09:14:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-26 19:38:44 -0400 |
commit | 7808a4c4853fa0203085cf2217e01823d9f0c70c (patch) | |
tree | 066da7c548ab63e69e8775075cd7f4beae893e78 /drivers/tty | |
parent | cf16807b61d15e42b20407c954a01a3774520ea7 (diff) |
8250: ratelimit LSR safety check engaged warning.
On my BIOSTAR TA890FXE the ttyS0 ends up spewing:
[904682.485933] ttyS0: LSR safety check engaged!
[904692.505895] ttyS0: LSR safety check engaged!
[904702.525972] ttyS0: LSR safety check engaged!
[904712.545967] ttyS0: LSR safety check engaged!
[904722.566125] ttyS0: LSR safety check engaged!
..
lets limit it so it won't be the only thing visible
in the ring buffer.
CC: Alan Cox <alan@linux.intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/8250.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250.c b/drivers/tty/serial/8250.c index 82ca71aa9d10..076e9c6269d3 100644 --- a/drivers/tty/serial/8250.c +++ b/drivers/tty/serial/8250.c | |||
@@ -2055,8 +2055,8 @@ static int serial8250_startup(struct uart_port *port) | |||
2055 | */ | 2055 | */ |
2056 | if (!(up->port.flags & UPF_BUGGY_UART) && | 2056 | if (!(up->port.flags & UPF_BUGGY_UART) && |
2057 | (serial_inp(up, UART_LSR) == 0xff)) { | 2057 | (serial_inp(up, UART_LSR) == 0xff)) { |
2058 | printk(KERN_INFO "ttyS%d: LSR safety check engaged!\n", | 2058 | printk_ratelimited(KERN_INFO "ttyS%d: LSR safety check engaged!\n", |
2059 | serial_index(&up->port)); | 2059 | serial_index(&up->port)); |
2060 | return -ENODEV; | 2060 | return -ENODEV; |
2061 | } | 2061 | } |
2062 | 2062 | ||