From: Marc Kleine-Budde Date: Mon, 28 Jul 2008 19:26:01 +0000 (+0200) Subject: imx serial: fix rts handling for non imx1 based hardware X-Git-Tag: v2.6.27-rc7~27^2~1^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9fbe604456c5ae21768f1c98379e1b81c72adcd3;p=linux-2.6-omap-h63xx.git 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: Marc Kleine-Budde Signed-off-by: Sascha Hauer --- diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 312653e2f71..3f90f1bbbbc 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c @@ -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;