]> git.wh0rd.org - patches.git/blob - linux-dont-force-enable-rts.patch
more random patches. who knows.
[patches.git] / linux-dont-force-enable-rts.patch
1 diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
2 index 0422c0f..838331d 100644
3 --- a/drivers/serial/serial_core.c
4 +++ b/drivers/serial/serial_core.c
5 @@ -189,7 +189,7 @@ static int uart_startup(struct uart_state *state, int init_hw)
6 * port is open and ready to respond.
7 */
8 if (info->tty->termios->c_cflag & CBAUD)
9 - uart_set_mctrl(port, TIOCM_RTS | TIOCM_DTR);
10 + uart_set_mctrl(port, (info->flags & UIF_CTS_FLOW ? TIOCM_RTS : 0) | TIOCM_DTR);
11 }
12
13 if (info->flags & UIF_CTS_FLOW) {