public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Marek Michalkiewicz <marekm@amelek.gda.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] serial.c ALI/SMSC/VIA high speed support
Date: Thu, 30 Aug 2001 14:59:43 -0400	[thread overview]
Message-ID: <20010830145943.B3114@thunk.org> (raw)
In-Reply-To: <E15azR5-0006Za-00@mm.amelek.gda.pl>
In-Reply-To: <E15azR5-0006Za-00@mm.amelek.gda.pl>; from marekm@amelek.gda.pl on Sun, Aug 26, 2001 at 02:54:42PM +0200

On Sun, Aug 26, 2001 at 02:54:42PM +0200, Marek Michalkiewicz wrote:
> I was a bit surprised when I learned that _many_ motherboards
> support high speed (usually max 460800 bps) serial ports, but
> this fact is not advertised in any motherboard manuals!

This patch hard codes magic divisor values for a specific motherboard
into the serial driver.  The fact that the motherboard is using magic
divisor values is in incredible bad taste (unlike the motherboards
that simply use a faster clock frequency and so simply require
different base baud value), but the fact that the patch uncoditionally
recognizes these magic values and changes the behaviour for all UART's
unconditionally (not just for the motherbards that use this completely
broken design) is in very bad taste....

If you're going to do something like this, then it must be conditional
on a UART type that indicates that this is a broken UART that is
playing wierd shit divisor games.  Please don't do this
unconditionally, since then when the next broken motherboard design
uses another set of magic divisor numbers (which possibly might
overlap with VIA's broken magic divisor numbers), the result will be a
gigantic mess.....

						- Ted

  reply	other threads:[~2001-08-30 19:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-26 12:54 [patch] serial.c ALI/SMSC/VIA high speed support Marek Michalkiewicz
2001-08-30 18:59 ` Theodore Tso [this message]
2001-08-31 14:52   ` Marek Michalkiewicz
     [not found] <Pine.LNX.4.30.0108261918450.23071-101000@anime.net>
2001-08-27  9:41 ` Marek Michalkiewicz

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=20010830145943.B3114@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marekm@amelek.gda.pl \
    /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