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

Commit 6376cd39 authored by Nandor Han's avatar Nandor Han Committed by Greg Kroah-Hartman
Browse files

serial: imx: Enable RTSD only when needed



Currently, this IRQ is always enabled. Some devices might mux these pins
to other I/Os, like I2C. This could lead to spurious interrupts.

This commit makes this IRQ optional, by using the field have_rtscts.

Signed-off-by: default avatarNandor Han <nandor.han@ge.com>
Signed-off-by: default avatarRomain Perier <romain.perier@collabora.com>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ac88295
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1299,7 +1299,9 @@ static int imx_startup(struct uart_port *port)
		imx_enable_dma(sport);

	temp = readl(sport->port.membase + UCR1);
	temp |= UCR1_RRDYEN | UCR1_RTSDEN | UCR1_UARTEN;
	temp |= UCR1_RRDYEN | UCR1_UARTEN;
	if (sport->have_rtscts)
			temp |= UCR1_RTSDEN;

	writel(temp, sport->port.membase + UCR1);