From: Alex Williamson <alex.williamson@hp.com>
To: rmk+serial@arm.linux.org.uk
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Exar ST16C2550 rev A2 bug
Date: Wed, 17 Nov 2004 11:26:47 -0700 [thread overview]
Message-ID: <1100716008.32679.55.camel@tdi> (raw)
Hi Russell,
There seem to be an increasing number of the above UARTs floating
around and I'm wondering if we can do something to better detect and
work around their flaw. Exar has documented the problem and their
proposed serial driver changes to work around the issue here:
http://www.exar.com/info.php?pdf=dan180_oct2004.pdf
In short, they had a mask problem that inadvertently exposes the DVID,
DREV and EFR registers on the chip. This causes us to detect the device
as a 16650V2 and try to make use of the FIFO as if it were 32 bytes.
The previous version of the UART detected correctly as a 16550A and
worked fine. Exar's proposed solution is simply to only set the port
type to 16650V2 if size_fifo() == 32, or simply:
===== drivers/serial/8250.c 1.91 vs edited =====
--- 1.91/drivers/serial/8250.c 2004-11-13 17:43:56 -07:00
+++ edited/drivers/serial/8250.c 2004-11-17 11:13:05 -07:00
@@ -570,7 +570,7 @@
*/
if (size_fifo(up) == 64)
up->port.type = PORT_16654;
- else
+ else if (size_fifo(up) == 32)
up->port.type = PORT_16650V2;
}
The proposed 2.4 solution is quite similar. It seems reasonable to
verify the reported FIFO size, but perhaps you have a better solution.
For anyone currently impacted by this bug, a simple yet limited
workaround is to change the uart type using setserial. Thanks,
Alex
--
Alex Williamson HP Linux & Open Source Lab
next reply other threads:[~2004-11-17 18:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 18:26 Alex Williamson [this message]
2004-11-28 11:10 ` Exar ST16C2550 rev A2 bug Russell King
2004-11-28 16:26 ` Alex Williamson
2004-12-03 21:06 ` Alex Williamson
2004-12-13 22:15 ` Alex Williamson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1100716008.32679.55.camel@tdi \
--to=alex.williamson@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+serial@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox