serial: omap: fix the reciever line error case
authorShubhrajyoti D <shubhrajyoti@ti.com>
Fri, 21 Sep 2012 14:37:19 +0000 (20:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 20:33:37 +0000 (13:33 -0700)
commit9a12fcf8b1543c99ffcec3d61db86f0dea52dc9d
tree01461e52f6e0ea5cbbb7ae0492cf7428eb78cbd5
parent65ecc9c02dbad033a73a32916d17c107c5b25031
serial: omap: fix the reciever line error case

This patch does the following
- In case of errors if there least one data character in the RX FIFO
read it otherwise it may stall the receiver.

This is recommended in the interrupt reset method in the table 23-246 of
the omap4 TRM.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c