mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
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>
This commit is contained in:
parent
c6e2dfaa52
commit
4514108c5b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue