Commit cabe0785 authored by Johan Hovold's avatar Johan Hovold
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent b83076a9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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