Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -1
+4 -1
drivers/usb/serial/console.c
··· 79 79 if (*s) 80 80 doflow = (*s++ == 'r'); 81 81 } 82 - 82 + 83 83 /* Sane default */ 84 84 if (baud == 0) 85 85 baud = 9600; ··· 101 101 cflag |= PARENB; 102 102 break; 103 103 } 104 + 105 + if (doflow) 106 + cflag |= CRTSCTS; 104 107 105 108 /* 106 109 * no need to check the index here: if the index is wrong, console