From 4617aa32ada21d5558f757286d81538d9368347f Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Wed, 17 Aug 2011 13:48:15 +0200 Subject: [PATCH] --- yaml --- r: 263421 b: refs/heads/master c: 0055197e984e5fbe6f48f37fc50dd30254915493 h: refs/heads/master i: 263419: 82a8ed56dae83c8f88e709892bc59545db5c7ddf v: v3 --- [refs] | 2 +- trunk/drivers/tty/serial/serial_core.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 67bb2395ffe4..8e655fa6db8f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 24d406a6bf736f7aebdc8fa0f0ec86e0890c6d24 +refs/heads/master: 0055197e984e5fbe6f48f37fc50dd30254915493 diff --git a/trunk/drivers/tty/serial/serial_core.c b/trunk/drivers/tty/serial/serial_core.c index db7912cb7ae0..a3efbea5dbba 100644 --- a/trunk/drivers/tty/serial/serial_core.c +++ b/trunk/drivers/tty/serial/serial_core.c @@ -200,6 +200,11 @@ static int uart_startup(struct tty_struct *tty, struct uart_state *state, int in clear_bit(TTY_IO_ERROR, &tty->flags); } + /* + * This is to allow setserial on this port. People may want to set + * port/irq/type and then reconfigure the port properly if it failed + * now. + */ if (retval && capable(CAP_SYS_ADMIN)) retval = 0;