Skip to contentSkip to conversation

serial: imx: Enable RTSD only when needed

PATCH New Romain Perier 2 participants 3 messages Apr 12, 2017 – Apr 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: imx: Enable RTSD only when needed

From: Nandor Han <[email protected]>

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.

---
 drivers/tty/serial/imx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/tty/serial/imx.c +3 -1
index e3e152cb..6dd674f 100644
@@ -1294,7 +1294,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);
 
Signature · 1 line
2.9.3
reviewer
#1 lore raw

PATCH 1/1 serial: imx: Enable RTSD only when needed

Quoted 9 lines · Romain Perier

From: Nandor Han <[email protected]>

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.

#2 lore raw

PATCH 1/1 serial: imx: Enable RTSD only when needed

Hello all,

Le 12/04/2017 ? 15:38, Fabio Estevam a ?crit :

Quoted 4 lines
Quoted 2 lines · Romain Perier

From: Nandor Han <[email protected]>

Quoted 8 lines
Quoted 7 lines

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.

No more feedback on this patch ?

Regards,
Romain