Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e881d3f3 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman
Browse files

serial: imx: fix polarity of RI



When in DTE mode, the bit USR2_RIIN is active low. So invert the logic
accordingly.

Fixes: 90ebc483 ("serial: imx: repair and complete handshaking")
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06ed48b7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -800,8 +800,8 @@ static unsigned int imx_get_hwmctrl(struct imx_port *sport)
	if (!(usr1 & USR2_DCDIN))
		tmp |= TIOCM_CAR;

	/* in DCE mode RIIN is always 0 */
	if (readl(sport->port.membase + USR2) & USR2_RIIN)
	if (sport->dte_mode)
		if (!(readl(sport->port.membase + USR2) & USR2_RIIN))
			tmp |= TIOCM_RI;

	return tmp;