public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Koeller <thomas@koeller.dyndns.org>
To: Alex Williamson <alex.williamson@hp.com>
Cc: linux-serial@vger.kernel.org,
	Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Subject: RM9000 code broken in 8250.c
Date: Fri, 21 Dec 2007 12:50:17 +0100	[thread overview]
Message-ID: <200712211250.18002.thomas@koeller.dyndns.org> (raw)

Hi,

while investigating breakage of the RM9000 code in
drivers/serial/8250.c, I found that my problems are
caused by commit 40b36daad0ac704e6d5c1b75789f371ef5b053c1.
My device has the characteristic of not generating a
'transmitter empty' interrupt immediately if interrupts
are enabled while the transmitter is empty, it needs to
be kicked by transmitting a character first. Before
commit 40b36daad0ac704e6d5c1b75789f371ef5b053c1 this was
taken care of by code in serial8250_startup() that probed
the hardware for this bug an set the UART_BUG_TXEN flag,
which then modified the behavior of serial8250_start_tx()
to take the bug into account. This used to work well for
my device.

The commit introduced another check for the same condition
which is done earlier in serial8250_startup(), and causes
the driver to use a periodic timer instead of the hardware
interrupt. Now my device uses that timer, while it was
perfectly capable of using the serial port transmit
interrupt before.

I wonder why a new workaround has been introduced for a
problem for which there had already been a (far superior)
solution. Didn't this existing solution solve the problem
for the hardware in question? If so, wouldn't it have been
possible to modify the existing solution instead of adding
another one that conflicts with existing code that depends
on the old code?

regards,
Thomas
-- 
Thomas Koeller
thomas@koeller.dyndns.org

             reply	other threads:[~2007-12-21 11:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-21 11:50 Thomas Koeller [this message]
2007-12-21 14:23 ` RM9000 code broken in 8250.c 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
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=200712211250.18002.thomas@koeller.dyndns.org \
    --to=thomas@koeller.dyndns.org \
    --cc=alex.williamson@hp.com \
    --cc=aris@cathedrallabs.org \
    --cc=linux-serial@vger.kernel.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