sc16is7x2 driver bug (fix)
diff mbox

Message ID 4D0B802A.1090002@corscience.de
State Superseded, archived
Headers show

Commit Message

Johannes Reif Dec. 17, 2010, 3:22 p.m. UTC
None

Patch
diff mbox

--- a/drivers/serial/sc16is7x2.c
+++ b/drivers/serial/sc16is7x2.c
@@ -1042,7 +1042,7 @@  static irqreturn_t sc16is7x2_work(int irq, void *data)

         sc16is7x2_read_status(ts, ch);

-       while ((chan->iir & UART_IIR_NO_INT) == 0x00
+       while (((chan->iir & UART_IIR_NO_INT) == 0x00 || 
gpio_get_value(irq_to_gpio(ts->spi->irq)) == 0)
&& !ts->force_end_work) {
                 sc16is7x2_handle_modem(ts, ch);