mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
USB: serial: console: add support for flow control
Add support for enabling hardware flow control using the 'r' command line option. This also avoids a W=1 (-Wunused-but-set-variable) warning. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
b83076a94d
commit
cabe0785ff
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,7 @@ static int usb_console_setup(struct console *co, char *options)
|
|||
if (*s)
|
||||
doflow = (*s++ == 'r');
|
||||
}
|
||||
|
||||
|
||||
/* Sane default */
|
||||
if (baud == 0)
|
||||
baud = 9600;
|
||||
|
@ -102,6 +102,9 @@ static int usb_console_setup(struct console *co, char *options)
|
|||
break;
|
||||
}
|
||||
|
||||
if (doflow)
|
||||
cflag |= CRTSCTS;
|
||||
|
||||
/*
|
||||
* no need to check the index here: if the index is wrong, console
|
||||
* code won't call us
|
||||
|
|
Loading…
Reference in a new issue