Skip to content

Commit

Permalink
imx serial: fix rts handling for non imx1 based hardware
Browse files Browse the repository at this point in the history
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: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde authored and Sascha Hauer committed Sep 2, 2008
1 parent 4411805 commit 9fbe604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static irqreturn_t imx_int(int irq, void *dev_id)
readl(sport->port.membase + UCR1) & UCR1_TXMPTYEN)
imx_txint(irq, dev_id);

if (sts & USR1_RTSS)
if (sts & USR1_RTSD)
imx_rtsint(irq, dev_id);

return IRQ_HANDLED;
Expand Down

0 comments on commit 9fbe604

Please sign in to comment.