Staging: ipack/devices/ipoctal: acknowledge BREAK condition.
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 13 Sep 2012 10:32:22 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 03:21:38 +0000 (20:21 -0700)
Clear the BREAK flag from the ISR register. Doing that, we avoid to read
the same condition for the next character received.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/devices/ipoctal.c

index 9fc2f7f7199b8a18d8ff13a5a5a2dcf91c2aa16f..164e43ce691367f1f246aa4480cd5743c7234d69 100644 (file)
@@ -158,6 +158,7 @@ static void ipoctal_irq_rx(struct ipoctal_channel *channel,
                                flag = TTY_FRAME;
                        }
                        if (sr & SR_RECEIVED_BREAK) {
+                               iowrite8(CR_CMD_RESET_BREAK_CHANGE, &channel->regs->w.cr);
                                channel->stats.rcv_break++;
                                flag = TTY_BREAK;
                        }