Commit 9fbe6044 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Sascha Hauer

imx serial: fix rts handling for non imx1 based hardware

The interrupt handler for muxed interrupts (imx2/imx3) was calling
the rts handling subroutine if the RTSS bit was set.
(Which indicates the status of the RTS line), leading to an
interrupt flood on RTS bit low.

This patch fixes the problem by looking at the RTSD bit instead,
indicating a change in the RTS line.
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 4411805b
...@@ -450,7 +450,7 @@ static irqreturn_t imx_int(int irq, void *dev_id) ...@@ -450,7 +450,7 @@ static irqreturn_t imx_int(int irq, void *dev_id)
readl(sport->port.membase + UCR1) & UCR1_TXMPTYEN) readl(sport->port.membase + UCR1) & UCR1_TXMPTYEN)
imx_txint(irq, dev_id); imx_txint(irq, dev_id);
if (sts & USR1_RTSS) if (sts & USR1_RTSD)
imx_rtsint(irq, dev_id); imx_rtsint(irq, dev_id);
return IRQ_HANDLED; return IRQ_HANDLED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment