From: Jean Delvare <khali@linux-fr.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Benjamin, linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org,
Takashi Iwai <tiwai@suse.de>
Subject: Re: [PATCH] AOA: Convert onyx and tas codecs to new-style i2c drivers
Date: Wed, 15 Apr 2009 15:06:32 +0200 [thread overview]
Message-ID: <20090415150632.0b2fe6bb@hyperion.delvare> (raw)
In-Reply-To: <1239799934.9071.4.camel@johannes.local>
On Wed, 15 Apr 2009 14:52:14 +0200, Johannes Berg wrote:
> > OK, I understand better what is going on now. I do not understand the
> > crash at the end though, but I suspect it isn't a bug in my code but
> > simply a faulty error path which had never been taken before.
>
> That would be weird -- the error path _has_ to be taken always in onyx.
> Unless you're talking about something in the i2c core or whatever?
Yes, i2c core or even driver core. I'll see if I can reproduce it.
> > (...)
> > Well, there is a dirty workaround, which I will apply for now, but...
> > ideally the layout factory should be revisited so that the codec check
> > happens earlier. Is this something you could help with?
>
> That's not really possible unless the factory post-processes the entire
> device-tree -- very ugly.
What I had in mind was not so complex. Simply, we could move the
i2c_new_device() calls into layout_found_codec(). That way we can
decide to instantiate the I2C device if and only if check_codec() is
successful. This is more efficient that creating the device, letting
the driver attach to it, with probing eventually failing, and then
removing the device if it wasn't the right one.
That is, the i2c client would be a mere helper on top of struct
aoa_codec, rather than the other way around.
There may be preliminary work needed, for example switching powermac to
numbered I2C buses.
> > That's something which isn't too clear to me: is there a physical
> > device at 2-0046 and 3-0046? The onyx codec is accepted for the latter,
> > however it seems that the test of a device presence at 2-0046 succeeds
> > as well...
>
> It's the _same_ physical device.
Wow. One I2C device which can be reached through 2 different I2C buses?
First time I hear about something like this. Very odd. I can't see the
point of doing this.
--
Jean Delvare
next prev parent reply other threads:[~2009-04-15 13:06 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 13:02 [PATCH] AOA: Convert onyx and tas codecs to new-style i2c drivers Jean Delvare
2009-04-08 15:51 ` Johannes Berg
2009-04-08 20:48 ` Jean Delvare
2009-04-09 7:44 ` Johannes Berg
2009-04-09 12:19 ` Jean Delvare
2009-04-09 12:34 ` Johannes Berg
2009-04-09 14:21 ` Jean Delvare
2009-04-10 15:02 ` Jean Delvare
2009-04-14 14:37 ` Jean Delvare
2009-04-14 14:45 ` Takashi Iwai
2009-04-16 7:53 ` Jean Delvare
2009-04-16 7:56 ` Takashi Iwai
2009-04-14 15:40 ` Johannes Berg
2009-04-14 15:50 ` Johannes Berg
2009-04-14 16:57 ` Jean Delvare
2009-04-14 17:41 ` Johannes Berg
2009-04-14 19:49 ` Jean Delvare
2009-04-14 21:59 ` Johannes Berg
2009-04-15 12:15 ` Jean Delvare
2009-04-15 12:52 ` Johannes Berg
2009-04-15 13:06 ` Jean Delvare [this message]
2009-04-15 13:18 ` Johannes Berg
2009-04-15 13:52 ` Jean Delvare
2009-04-14 22:48 ` Andreas Schwab
2009-04-15 8:19 ` Jean Delvare
2009-04-14 16:48 ` Andreas Schwab
2009-04-14 17:20 ` Johannes Berg
-- strict thread matches above, loose matches on Subject: below --
2009-04-20 20:54 Jean Delvare
2009-04-20 21:04 ` Johannes Berg
2009-04-21 9:29 ` Jean Delvare
2009-04-21 9:41 ` Johannes Berg
2009-04-21 6:30 ` Takashi Iwai
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=20090415150632.0b2fe6bb@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=alsa-devel@alsa-project.org \
--cc=johannes@sipsolutions.net \
--cc=linuxppc-dev@ozlabs.org \
--cc=tiwai@suse.de \
/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;
as well as URLs for NNTP newsgroup(s).