]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] amba-pl010: clear error flags on rx error
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 7 Dec 2006 04:39:57 +0000 (20:39 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:44 +0000 (08:39 -0800)
commit0800cb1c7193a0408c6913be3b89bb984476ea0d
tree26ce210d81b77b40d08b96a5a7772f806eb43d89
parente078ec612aae1d4d42ee29cd9d1ebb935e21cac7
[PATCH] amba-pl010: clear error flags on rx error

The pl010 primecell documentation specifies that an error indicated via RSR
should be cleared by a write to ECR.  We didn't do this, which was causing
errors to be re-reported on every call to pl010_rx_chars().

Doing a write to ECR once we detect an error appears to prevent the ep93xx
console UART driver from going into a mode where it reports "ttyAM0: X
input overrun(s)" every couple of keystrokes.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/serial/amba-pl010.c