ipoctal: clear break interrupt as soon as it occurs
authorFederico Vaga <federico.vaga@cern.ch>
Mon, 1 Sep 2014 11:49:56 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:26:42 +0000 (23:26 -0700)
commit95e838c915edbdde366d111905245171ac99c2cc
tree16f44db4a8158f2f61c96c13e6a69f47f3e49d57
parent1451f414639465995dfc1f820aa1a64723cbd662
ipoctal: clear break interrupt as soon as it occurs

In some condition we receive the break interrupt but nothing is putted
in the Rx FIFO and the correspondend bit in the status register is not
set. Thus, no-one clear the interrupt and the handler will be called
forever.

This patch clear the break interrupt as soon as it occurs. Then, if the
break character '\0' is putted in the fifo we will manage it.

We can also unmask the Break interrupt but its bit in ISR is still set
on break. So I think is better to keep the registers clean.

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ipack/devices/ipoctal.c
This page took 0.025854 seconds and 5 git commands to generate.