]> git.baikalelectronics.ru Git - kernel.git/commit
serial/arc-uart: Handle Rx Error Interrupts w/o any data
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Fri, 2 Aug 2013 04:49:19 +0000 (21:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2013 03:54:12 +0000 (11:54 +0800)
commit8aeffa1215cdf9325fe15fa24497e17aa0ab46cd
tree488245e42b7e58d5e813cfd3de6f56c04c53c8a1
parentade79c7b0491d071d2081f4a613a65ade3375d1d
serial/arc-uart: Handle Rx Error Interrupts w/o any data

Currently, Rx error handling only triggers if there is some Rx data.
Fix that by checking for error - before the data handling.

Reported-by: Mischa Jonker <mjonker@synopsys.com>
Tested-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/arc_uart.c