diff options
-rw-r--r-- | drivers/tty/serial/imx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 57d6e6ba556e..32f36d86a960 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
@@ -405,7 +405,12 @@ static void imx_uart_rts_inactive(struct imx_port *sport, u32 *ucr2) | |||
405 | /* called with port.lock taken and irqs caller dependent */ | 405 | /* called with port.lock taken and irqs caller dependent */ |
406 | static void imx_uart_rts_auto(struct imx_port *sport, u32 *ucr2) | 406 | static void imx_uart_rts_auto(struct imx_port *sport, u32 *ucr2) |
407 | { | 407 | { |
408 | *ucr2 |= UCR2_CTSC; | 408 | /* |
409 | * Only let receiver control RTS output if we were not requested to have | ||
410 | * RTS inactive (which then should take precedence). | ||
411 | */ | ||
412 | if (*ucr2 & UCR2_CTS) | ||
413 | *ucr2 |= UCR2_CTSC; | ||
409 | } | 414 | } |
410 | 415 | ||
411 | /* called with port.lock taken and irqs off */ | 416 | /* called with port.lock taken and irqs off */ |