summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ipack
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>2012-09-13 12:32:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-13 20:21:38 -0700
commit4514108c5b8088ab4a72ba27eb093882d76619cf (patch)
tree378f0c7b38fe36aa70e49ff696aaf497e0f6f4d8 /drivers/staging/ipack
parentc6e2dfaa5251f584a05df74911685775dd750e2d (diff)
downloadlinux-4514108c5b8088ab4a72ba27eb093882d76619cf.tar.bz2
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 <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ipack')
-rw-r--r--drivers/staging/ipack/devices/ipoctal.c1
1 files changed, 1 insertions, 0 deletions
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;
}