From: David Brownell <david-b@pacbell.net>
To: Jean Delvare <khali@linux-fr.org>
Cc: Wolfram Sang <w.sang@pengutronix.de>,
linuxppc-dev list <Linuxppc-dev@ozlabs.org>,
Timur Tabi <timur@freescale.com>, Linux I2C <i2c@lm-sensors.org>
Subject: Re: [i2c] [PATCH] Convert i2c-mpc from a platform driver to an of_platform one
Date: Sun, 29 Jun 2008 19:51:14 -0700 [thread overview]
Message-ID: <200806291951.14465.david-b@pacbell.net> (raw)
In-Reply-To: <20080629091725.291974e9@hyperion.delvare>
On Sunday 29 June 2008, Jean Delvare wrote:
>
> > After the i2c adapter registers itself, of_register_i2c_devices() is called
> > which walks through the child nodes of the i2c adapter node in the device
> > tree. Each child node is an i2c device, and it immediately get
> > registered with the adapter. Because this ensures that i2c device
> > registration always happens after adapter registration, and since the
> > pointer to the i2c_adapter is known, then i2c_new_device() can be used
> > directly without ever needing to know the bus number.
>
> Ah, OK. If you use i2c_new_device() then it's alright.
Right. Conceptually the way that the i2c core uses "numbered"
adapters and registered board_info could be viewed as a way to
let platforms avoid tracking that stuff themselves. Since
the of_* framework is already tracking that, there's no big win
in trying to have i2c-core track that too, on its behalf.
- Dave
next prev parent reply other threads:[~2008-06-30 2:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 2:40 [PATCH] Convert i2c-mpc from a platform driver to an of_platform one Jon Smirl
2008-06-11 16:00 ` [i2c] " Wolfram Sang
2008-06-11 16:14 ` Jon Smirl
2008-06-25 13:25 ` Jean Delvare
2008-06-25 13:58 ` Jean Delvare
2008-06-29 2:05 ` Jon Smirl
2008-06-29 4:49 ` Grant Likely
2008-06-29 6:31 ` Jean Delvare
2008-06-29 6:58 ` Grant Likely
[not found] ` <20080629065812.GO13876-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
2008-06-29 7:17 ` Jean Delvare
2008-06-29 16:24 ` [i2c] " Sean MacLennan
2008-06-29 16:35 ` Jean Delvare
2008-06-30 2:51 ` David Brownell [this message]
2008-06-29 4:57 ` Grant Likely
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=200806291951.14465.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=Linuxppc-dev@ozlabs.org \
--cc=i2c@lm-sensors.org \
--cc=khali@linux-fr.org \
--cc=timur@freescale.com \
--cc=w.sang@pengutronix.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