From: Samuel Iglesias Gonsalvez Date: Thu, 13 Sep 2012 10:32:22 +0000 (+0200) Subject: Staging: ipack/devices/ipoctal: acknowledge BREAK condition. X-Git-Tag: next-20120917~24^2~16 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4514108c5b8088ab4a72ba27eb093882d76619cf;p=karo-tx-linux.git Staging: ipack/devices/ipoctal: acknowledge BREAK condition. 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 9fc2f7f7199b..164e43ce6913 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -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; }