From: Jean Delvare <khali@linux-fr.org>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: Greg Kroah-Hartman <gregkh@suse.de>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] go7007: Convert to the new i2c device binding model
Date: Tue, 21 Apr 2009 15:33:07 +0200 [thread overview]
Message-ID: <20090421153307.10b24cea@hyperion.delvare> (raw)
In-Reply-To: <49ED781F.2000802@ladisch.de>
Hallo Clemens,
On Tue, 21 Apr 2009 09:39:11 +0200, Clemens Ladisch wrote:
> Jean Delvare wrote:
> > I am puzzled by the s2250 I2C address, 0x86 really doesn't fit in
> > 7 bits, there must be something wrong.
>
> > - .addr = 0x34,
> > + .addr = 0x86, /* ?? */
>
> > -#define S2250_VIDDEC 0x86
>
> Many I2C controllers use an 8-bit address register, with the lowest bit
> being the read/write bit (because this is the order in which the bits
> are transmitted over the bus). So it looks as if the actual address
> _is_ 0x34;
0x86 >> 1 is actually 0x43, not 0x34. 0x34 is the address for the audio
part of the device:
#define TLV320_ADDRESS 0x34
The original code was a little messy and used the same i2c_client for
both parts, changing the address on the fly.
That being said, I think you are probably right, the 7-bit device's
address is probably 0x43 for video. And now that we mention that,
probably 0x34 for audio is incorrect as well. "TLV320" suggests some
incarnation of the TI TLV320 series, many of which are already
supported in the kernel, and all I've seen had address 0x18, 0x19, 0x1a
or 0x1b. Given that 0x34 >> 1 is 0x1a... it's a good hint that 0x34
wasn't a 7-bit address value, right?
I'll change the addresses to 0x43 for video and 0x1a for audio. Updated
patch coming.
> the S2250_VIDDEC symbol is probably a relict of the old
> driver that programmed the I2C controller directly.
Could be. But then this means that the driver as it stands in the
kernel today, doesn't work. Which, in a way, is good news, as it means
I can push my changes immediately. Even if I got the conversion wrong,
it won't be more broken than it already was ;)
Thanks,
--
Jean Delvare
prev parent reply other threads:[~2009-04-21 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 17:42 [PATCH] go7007: Convert to the new i2c device binding model Jean Delvare
2009-04-21 7:39 ` Clemens Ladisch
2009-04-21 13:33 ` Jean Delvare [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=20090421153307.10b24cea@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=clemens@ladisch.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@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