|
@@ -336,15 +336,15 @@ static void imx_port_ucrs_restore(struct uart_port *port,
|
|
|
|
|
|
static void imx_port_rts_active(struct imx_port *sport, unsigned long *ucr2)
|
|
|
{
|
|
|
- *ucr2 &= ~UCR2_CTSC;
|
|
|
- *ucr2 |= UCR2_CTS;
|
|
|
+ *ucr2 &= ~(UCR2_CTSC | UCR2_CTS);
|
|
|
|
|
|
mctrl_gpio_set(sport->gpios, sport->port.mctrl | TIOCM_RTS);
|
|
|
}
|
|
|
|
|
|
static void imx_port_rts_inactive(struct imx_port *sport, unsigned long *ucr2)
|
|
|
{
|
|
|
- *ucr2 &= ~(UCR2_CTSC | UCR2_CTS);
|
|
|
+ *ucr2 &= ~UCR2_CTSC;
|
|
|
+ *ucr2 |= UCR2_CTS;
|
|
|
|
|
|
mctrl_gpio_set(sport->gpios, sport->port.mctrl & ~TIOCM_RTS);
|
|
|
}
|