serial: imx: Enable RTSD only when needed
Subsystems (2)
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
@@ -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
Fabio Estevam
reviewerPATCH 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.Signed-off-by Nandor Han <[email protected]>Signed-off-by Romain Perier <[email protected]>
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.Signed-off-by Nandor Han <[email protected]>Signed-off-by Romain Perier <[email protected]>Reviewed-by Fabio Estevam <[email protected]>
No more feedback on this patch ?
Regards,
Romain