From: Wolfram Sang <wsa@the-dreams.de>
To: "Svenning Sørensen" <sss@secomea.com>,
"Jim Cromie" <jim.cromie@gmail.com>
Cc: linux-i2c@vger.kernel.org
Subject: Re: [PATCH] i2c: scx200_acb: avoid I2C bus overclocking.
Date: Sun, 25 Oct 2015 16:47:49 +0100 [thread overview]
Message-ID: <20151025154748.GB23308@katana> (raw)
In-Reply-To: <20150602182134.GG1494@katana>
[-- Attachment #1: Type: text/plain, Size: 1496 bytes --]
On Wed, Jun 03, 2015 at 03:21:35AM +0900, Wolfram Sang wrote:
> On Thu, Apr 23, 2015 at 10:27:50PM +0200, Svenning Sørensen wrote:
> > According to I2C spec, max SCL rate is 100 kHz, but SCx200/CS5536
> > controller is currently driving it at 214 kHz according to my math.
> >
> > SCL is derived from an input clock of 48 MHz, which must be divided
> > by 480 (240 cycles for each SCL high/low state) to be within spec.
> >
> > Signed-off-by: Svenning Soerensen <sss@secomea.com>
>
> Thanks for mentioning that it fixed a problem for you. I needed this
> info.
>
> > +#define ACBCLK 240 /* 48 MHz / 100 kHz / 2 */
>
> Can you add a comment where you found the info about 48MHz? Since I
> don't know the hardware at all: Can you imagine that there is even older
> hardware with a clock where 0x70 was suitable?
>
> > - outb(inb(ACBCTL2) | ACBCTL2_ENABLE, ACBCTL2);
> > + outb(ACBCLK | ACBCTL2_ENABLE, ACBCTL2);
> ...
> > - outb(inb(ACBCTL2) | ACBCTL2_ENABLE, ACBCTL2);
> > + outb(ACBCLK | ACBCTL2_ENABLE, ACBCTL2);
>
> For consistency reasons and to be less intrusive, I'd rather keep the
> original chunks.
I just remembered that this driver still has a maintainer :) Adding Jim
to CC. Maybe he has some more info? Would be sad to lose this potential
fix, yet I am careful to not introduce regressions to this old hardware.
Jim: The rest of this small thread can be found here:
http://patchwork.ozlabs.org/patch/464046/
Thanks,
Wolfram
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-10-25 15:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-23 20:27 [PATCH] i2c: scx200_acb: avoid I2C bus overclocking Svenning Sørensen
[not found] ` <553955C6.3030000-sijd2F9aCfdBDgjK7y7TUQ@public.gmane.org>
2015-05-12 20:19 ` Wolfram Sang
[not found] ` <20150512201919.GL4449-oo5tB6JMkjKRinMKxDlMNPwbnWRJjS81@public.gmane.org>
2015-05-12 21:09 ` Svenning Sørensen
2015-06-02 18:21 ` Wolfram Sang
2015-10-25 15:47 ` Wolfram Sang [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=20151025154748.GB23308@katana \
--to=wsa@the-dreams.de \
--cc=jim.cromie@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=sss@secomea.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