public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Thomas Koeller <thomas@koeller.dyndns.org>
Cc: linux-serial@vger.kernel.org,
	Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Subject: Re: RM9000 code broken in 8250.c
Date: Tue, 26 Feb 2008 08:37:22 -0700	[thread overview]
Message-ID: <1204040242.24352.32.camel@bling> (raw)
In-Reply-To: <200802260159.09182.thomas@koeller.dyndns.org>


On Tue, 2008-02-26 at 01:59 +0100, Thomas Koeller wrote:
> On Mittwoch, 20. Februar 2008, Alex Williamson wrote:
> >
> >    The key is that I'm looking at the 2nd IIR read and expecting NO_INT.
> > My UART passes the TXEN bug test, so the first interrupt is generated
> > correctly.  Does this patch help at all?
> 
> The patch seems to be good. After applying it, my UART passes the
> modified test. I never tried enabling the interrupt twice, as your
> modified test does, and was not aware that in this case my hardware
> would raise an interrupt. How did you know? Can we be sure that possible
> other UARTS affected by UART_BUG_TXEN will also do this?

Hi Thomas,

   What I expect to happen is that your UART will not raise the transmit
empty interrupt either time (but most importantly the first time).  My
UART does interrupt on the first, but not the second.  Thus the failure
to *reassert* the interrupt as described in the comment.  Are you sure
your hardware is raising the interrupt?  I'm hoping that it doesn't, and
will fall out of my test and get caught by the original TXEN test.

   I placed the backup timer test before the TXEN bug test to make sure
I get a clean shot at the interrupts.  I was assuming that TXEN bug
UARTs never assert the transmitter empty interrupt, but I either forgot
to add the check that this patch does, or was hoping the backup timer
would keep them running too.  We could consider consolidating the tests,
as they're very similar, but frankly, I'm afraid to mess with the TXEN
test without having at least a couple UARTs with the issue to test.

   If your UART is detected correctly now and you don't have any
suggestions for further improvements, I'll go ahead and submit this.
Let me know.  Thanks,

	Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


  reply	other threads:[~2008-02-26 15:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-21 11:50 RM9000 code broken in 8250.c Thomas Koeller
2007-12-21 14:23 ` Alex Williamson
2008-02-16 17:18   ` Thomas Koeller
2008-02-17  6:09     ` Alex Williamson
2008-02-17 12:47       ` Thomas Koeller
2008-02-20 17:56         ` Alex Williamson
2008-02-26  0:59           ` Thomas Koeller
2008-02-26 15:37             ` Alex Williamson [this message]
2008-03-02 16:03               ` Thomas Koeller

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=1204040242.24352.32.camel@bling \
    --to=alex.williamson@hp.com \
    --cc=aris@cathedrallabs.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=thomas@koeller.dyndns.org \
    /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