Skip to content

Commit

Permalink
serial: sh-sci: Return IRQ_HANDLED when overrun if detected
Browse files Browse the repository at this point in the history
This patch fix an issue that the driver may cause "nobody cared" IRQ
when this driver detects the overrun flag only.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Yoshihiro Shimoda authored and Greg Kroah-Hartman committed Oct 4, 2015
1 parent e0a12a2 commit 9080307
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,10 @@ static irqreturn_t sci_mpxed_interrupt(int irq, void *ptr)
ret = sci_br_interrupt(irq, ptr);

/* Overrun Interrupt */
if (orer_status & s->overrun_mask)
if (orer_status & s->overrun_mask) {
sci_handle_fifo_overrun(port);
ret = IRQ_HANDLED;
}

return ret;
}
Expand Down

0 comments on commit 9080307

Please sign in to comment.