From: Alex Williamson <alex.williamson@hp.com>
To: Will Newton <will.newton@gmail.com>
Cc: linux-serial <linux-serial@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Thomas Koeller <thomas@koeller.dyndns.org>
Subject: Re: [PATCH] serial 8250: tighten test for using backup timer
Date: Tue, 05 Aug 2008 14:06:43 -0600 [thread overview]
Message-ID: <1217966803.17091.72.camel@2710p.home> (raw)
In-Reply-To: <87a5b0800808050444t49480549t758f954c40139c4a@mail.gmail.com>
Hi Will,
On Tue, 2008-08-05 at 12:44 +0100, Will Newton wrote:
> Hi,
>
> Sorry to not have picked up on this earlier, but this change seems to
> break an old DesignWare UART I have in an SoC here. It has a number of
> known issues, one of which is it does not appropriately reassert THRE.
>
> What seems to happen is that the first time the port is opened the
> code tests for incorrect reassertion of THRE and correctly sets up the
> backup timer. The port is closed and subsequently reopened and this
> time around the new logic prevents the backup timer from being
> enabled. I'm not 100% sure of the details of the bug that is being
> worked around here, but it appears that the second time the port is
> opened it is not possible to detect the bug because the previous THRE
> condition has already been acknowledged.
>
> The attached patch fixes the problem for me and attempts to preserve
> the new behaviour at the same time. Comments?
It would be nice if there was a simple procedure we could do on the UART
to reset it to a state so the test works repeatedly. However, with all
the buggy UARTs out there, that could end up disturbing someone else.
This change works for me, though it is using up a bit in the bugs field;
not that we seem to be allocating them at any great rate. I think it
would be worthy of a comment in the code to understand why this new
block exists outside the test so we don't need to refer back to the
commit changeset.
Acked-by: Alex Williamson <alex.williamson@hp.com>
Thanks, Alex
--
Alex Williamson HP Open Source & Linux Org.
next prev parent reply other threads:[~2008-08-05 20:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 16:50 [PATCH] serial 8250: tighten test for using backup timer Alex Williamson
2008-08-05 11:44 ` Will Newton
2008-08-05 20:06 ` Alex Williamson [this message]
2008-08-06 10:53 ` Will Newton
2008-08-11 21:32 ` Andrew Morton
2008-08-12 8:32 ` Will Newton
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=1217966803.17091.72.camel@2710p.home \
--to=alex.williamson@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=thomas@koeller.dyndns.org \
--cc=will.newton@gmail.com \
/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