linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: linuxppc-dev@ozlabs.org, i2c@lm-sensors.org
Subject: Re: [i2c] [PATCH 3/5] powerpc: Document device nodes for I2C devices.
Date: Mon, 21 May 2007 09:57:12 -0500	[thread overview]
Message-ID: <4651B348.1060408@freescale.com> (raw)
In-Reply-To: <20070520135353.6b4dba0b@hyperion.delvare>

Jean Delvare wrote:
> Hi Scott,
> 
> On Fri, 18 May 2007 12:55:45 -0500, Scott Wood wrote:
> 
>>Fair enough.  I'm still interested in what you think would need to be 
>>done to support switches and muxes, from the context of standardizing it 
>>in ePAPR.  The bus numbering shouldn't be an issue as long as you keep 
>>the bus numbers local to the switch/mux, and don't pretend that they 
>>have anything to do with any global i2c bus number that the OS may or 
>>may not have.
> 
> 
> But then you cannot declare devices on these segments and expect Linux
> to instantiate them. You'll have to wait for the segments to be created
> and only then you'll be able to create the devices on them (using
> i2c_new_device()).

You can declare devices by having platform code assign Linux bus numbers 
to them, just as with non-switched buses.  Of course, platform code 
would have to know about the switch to do that; it may be easier to just 
have the platform code register the switch driver and pass it a device 
tree node (or more generally, something opaque in platform data that 
gets passed back to platform code for registration) to do 
i2c_new_device()-based enumeration.

> Also, what's the point of giving numbers to the segments in the first
> place, if they don't correspond to anything?

The switch-local bus numbers are used to tell the switch which bus is 
being accessed.  The Linux bus numbers are used for device 
preregistration and user API.

They're both used, just for different purposes.

-Scott

  reply	other threads:[~2007-05-21 15:05 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-17 14:38 [PATCH 3/5] powerpc: Document device nodes for I2C devices Scott Wood
2007-05-17 16:12 ` Kumar Gala
2007-05-17 16:17   ` Scott Wood
2007-05-17 16:39     ` Kumar Gala
2007-05-17 16:47       ` Scott Wood
2007-05-17 17:21         ` Kumar Gala
2007-05-17 18:29           ` Scott Wood
2007-05-18 15:15           ` [i2c] " Jean Delvare
2007-05-18 16:24             ` Kumar Gala
2007-05-18 16:35               ` Scott Wood
2007-05-18 17:10                 ` Kumar Gala
2007-05-18 17:17                   ` Scott Wood
2007-05-18 17:33                     ` Kumar Gala
2007-05-18 17:55                       ` Scott Wood
2007-05-20 11:53                         ` Jean Delvare
2007-05-21 14:57                           ` Scott Wood [this message]
2007-05-19  0:04                   ` Matt Sealey
2007-05-19  0:17                     ` Segher Boessenkool
2007-05-19 13:41                       ` Matt Sealey
2007-05-19 16:25                         ` Segher Boessenkool
2007-05-20 14:53                           ` Matt Sealey
2007-05-20 15:48                             ` Segher Boessenkool
2007-05-27  9:48                               ` Matt Sealey
2007-05-20 11:42                   ` Jean Delvare
2007-05-18 20:07             ` Segher Boessenkool
2007-05-17 19:18 ` Segher Boessenkool
2007-05-17 19:32   ` Scott Wood
2007-05-17 19:44     ` Segher Boessenkool
2007-05-17 21:15       ` Scott Wood
2007-05-18 15:27     ` [i2c] " Jean Delvare
2007-05-18 15:58       ` Scott Wood
2007-05-18 16:29         ` Kumar Gala
2007-05-18 16:31         ` Jean Delvare
2007-05-18 16:56           ` Kumar Gala
2007-05-18 19:00           ` David Brownell
2007-05-18 15:19   ` Jean Delvare

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=4651B348.1060408@freescale.com \
    --to=scottwood@freescale.com \
    --cc=i2c@lm-sensors.org \
    --cc=khali@linux-fr.org \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).