]> git.neil.brown.name Git - history.git/commit
[SERIAL] 8250 woraround for buggy uart
authorAlex Williamson <alex.williamson@com.rmk.(none)>
Mon, 28 Feb 2005 16:09:45 +0000 (16:09 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Mon, 28 Feb 2005 16:09:45 +0000 (16:09 +0000)
commit25f34d0f108e72f383b69751f2722f253e31ef4d
tree6ebf067d292692aaae9109c3a2d63c6c0480473c
parentae48fc35e20494e897ffe4212d279b86673000e7
[SERIAL] 8250 woraround for buggy uart

Patch from Alex Williamson

This patch adds support for detecting and working around a bug in
the A2 rev of the Exar ST16C2550 UART.  The chip incorrectly
advertises an EFR and mis-detects as having the wrong size FIFO.
Much of the patch below is Russell's proposed solution to the
problem.  The only changes I've made are to check the FIFO size
on the part (because there is a real part with the same divisor
ID and larger FIFO) and save and restore the LCR register around
the size_fifo() routine (it doesn't work correctly with a LCR
value of 0xBF).

Signed-off-by: Alex Williamson
Signed-off-by: Russell King
drivers/serial/8250.c