[SERIAL] Fix status reporting with PL011 serial driver
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 19 Nov 2005 11:10:35 +0000 (11:10 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Nov 2005 11:10:35 +0000 (11:10 +0000)
commitb63d4f0fb80918ab37b6c0ee1adcd49e05c9994c
tree33af84cc60a0ad29c01632f24cba42eeb498be1a
parent811803c5572b296e0031e0099203de90d77c7bcf
[SERIAL] Fix status reporting with PL011 serial driver

The receiver status register reports latched error conditions, which
must be cleared by writing to it.  However, the data register reports
unlatched conditions which are associated with the current character.
Use the data register to interpret error status rather than the RSR.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/amba-pl011.c
include/asm-arm/hardware/amba_serial.h