From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: fabrizio.gennari@philips.com
Cc: linux-kernel@vger.kernel.org, rmk@arm.linux.org.uk, abbotti@mev.co.uk
Subject: Re: [PATCH] Kernel support for 16C950's CPR register
Date: Thu, 21 Feb 2002 15:46:01 -0800 [thread overview]
Message-ID: <20020221154601.B5273@bougret.hpl.hp.com> (raw)
In-Reply-To: <OFB97BA691.962BF699-ONC1256B66.00546B48@diamond.philips.com>
In-Reply-To: <OFB97BA691.962BF699-ONC1256B66.00546B48@diamond.philips.com>; from fabrizio.gennari@philips.com on Wed, Feb 20, 2002 at 04:56:03PM +0100
On Wed, Feb 20, 2002 at 04:56:03PM +0100, fabrizio.gennari@philips.com wrote:
> The 16C950 serial port from Oxford Semiconductor has a special register,
> called CPR (Clock Predivisor Register). This increases in steps of 1/8,
> thus allowing a finer control on the generated baud rate than the ordinary
> divisor registers DLL and DLM, that only increase in steps of 1.
>
> There are 3 patches for CPR:
> 1. one written by me
> 2. one written by Jean Tourrilhes
> 3. one written by Ian Abbott
>
> Patches 1 and 3 are available at
> http://sourceforge.net/tracker/?atid=300310&group_id=310&func=browse .
> Patch 2 is available at
> http://www.geocrawler.com/archives/3/8352/2001/10/0/6948700/ .
My patch is also available at :
http://www.hpl.hp.com/personal/Jean_Tourrilhes/bt/
> 1. My patch is crap :) Avoid
> 2. Jean Tourrilhes' patch does not use CPR if the requested speed is
> higher than 115200 b/s. This is fine if the clock frequency is an integral
> multiple of 16*115200=1843200, but otherwise it does not exploit CPR's
> potential of fine-tuning speed.
> 3. Ian Abbott's patch is by far the best
Well... I disagree. My patches has advantage over Ian's patch :
o autoset baud_base/CPR (Ian's patch doesn't)
o allow to set custom MSR (Ian's patch doesn't)
o much simpler. My code is readable, has minimal
impact on the general path (non 16C950) and doesn't have ugly gotos
all over the place.
To claim that Ian's patch is the best, you would need to at
least fix 1 and 2. Number 3 is debatable.
Regards,
Jean
prev parent reply other threads:[~2002-02-21 23:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 15:56 fabrizio.gennari
2002-02-21 23:46 ` Jean Tourrilhes [this message]
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=20020221154601.B5273@bougret.hpl.hp.com \
--to=jt@bougret.hpl.hp.com \
--cc=abbotti@mev.co.uk \
--cc=fabrizio.gennari@philips.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@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
all inboxes | Powered by JetHome®