All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: Viresh Kumar <viresh.kumar@st.com>,
	Mauro Carvalho Chehab <mchehab@redhat.com>,
	Tony Lindgren <tony@atomide.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Laxman Dewangan <ldewangan@nvidia.com>,
	linux-i2c@vger.kernel.org, Kukjin Kim <kgene.kim@samsung.com>,
	Stephen Warren <swarren@nvidia.com>,
	Barry Song <21cnbao@gmail.com>,
	Haojian Zhuang <haojian.zhuang@marvell.com>,
	Deepak Sikri <deepak.sikri@st.com>,
	Haavard Skinnemoen <hskinnemoen@gmail.com>,
	Dirk Brandewie <dirk.brandewie@gmail.com>,
	Pawel Moll <pawel.moll@arm.com>,
	Wolfram Sang <wolfram@the-dreams.de>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Rusty Russell <rusty@rustcorp.com.au>,
	Tang Yuantian <B29983@freescale.com>,
	"Jean Delvare (PC drivers, core)" <khali@linux-fr.org>,
	Magnus Damm <damm@opensource.se>,
	Lars-Peter Clausen <lars@metafoo.de>,
	"Ben Dooks (embedded platforms)" <ben-linux@fluff.org>,
	linux-arm-ke
Subject: Re: [PATCH] i2c: let the core register devices from devicetree
Date: Thu, 14 Jun 2012 21:35:24 +1000	[thread overview]
Message-ID: <1339673724.9220.164.camel@pasglop> (raw)
In-Reply-To: <20120614091434.GB14419@pengutronix.de>

On Thu, 2012-06-14 at 11:14 +0200, Wolfram Sang wrote:
> On Thu, Jun 14, 2012 at 07:33:37AM +1000, Benjamin Herrenschmidt wrote:
> > On Wed, 2012-06-13 at 23:12 +0200, Wolfram Sang wrote:
> > > Currently, every driver has to do it on its own, but it should be done
> > > in the core, like we already do with board_info structs.
> > > 
> > > Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> > > ---
> > > 
> > > Based on v3.5-rc2. Only build tested, I don't have a OF based device
> > > around at the moment.
> > 
> > Won't that conflict with i2c-powermac doing it its own way ?
> 
> Yup :(
> 
> I assume there is no chance that the powermac devicetree can be
> pre-processed to be compatible with of_i2c_register_devices?

That would be nasty and need a lot of testing on all sort of machines I
don't have direct access to.

Maybe we can set a flag somewhere to indicate to the core not to run the
default probing on that controller ?

Cheers,
Ben.

WARNING: multiple messages have this Message-ID (diff)
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: Viresh Kumar <viresh.kumar@st.com>,
	Mauro Carvalho Chehab <mchehab@redhat.com>,
	Tony Lindgren <tony@atomide.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Laxman Dewangan <ldewangan@nvidia.com>,
	linux-i2c@vger.kernel.org, Kukjin Kim <kgene.kim@samsung.com>,
	Stephen Warren <swarren@nvidia.com>,
	Barry Song <21cnbao@gmail.com>,
	Haojian Zhuang <haojian.zhuang@marvell.com>,
	Deepak Sikri <deepak.sikri@st.com>,
	Haavard Skinnemoen <hskinnemoen@gmail.com>,
	Dirk Brandewie <dirk.brandewie@gmail.com>,
	Pawel Moll <pawel.moll@arm.com>,
	Wolfram Sang <wolfram@the-dreams.de>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Rusty Russell <rusty@rustcorp.com.au>,
	Tang Yuantian <B29983@freescale.com>,
	"Jean Delvare \(PC drivers, core\)" <khali@linux-fr.org>,
	Magnus Damm <damm@opensource.se>,
	Lars-Peter Clausen <lars@metafoo.de>,
	"Ben Dooks \(embedded platforms\)" <ben-linux@fluff.org>,
	linux-arm-kernel@lists.infradead.org,
	Jiri Kosina <jkosina@suse.cz>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Karol Lewandowski <k.lewandowsk@samsung.com>,
	Olof Johansson <olof@lixom.net>, Shawn Guo <shawn.guo@linaro.org>,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] i2c: let the core register devices from devicetree
Date: Thu, 14 Jun 2012 21:35:24 +1000	[thread overview]
Message-ID: <1339673724.9220.164.camel@pasglop> (raw)
In-Reply-To: <20120614091434.GB14419@pengutronix.de>

On Thu, 2012-06-14 at 11:14 +0200, Wolfram Sang wrote:
> On Thu, Jun 14, 2012 at 07:33:37AM +1000, Benjamin Herrenschmidt wrote:
> > On Wed, 2012-06-13 at 23:12 +0200, Wolfram Sang wrote:
> > > Currently, every driver has to do it on its own, but it should be done
> > > in the core, like we already do with board_info structs.
> > > 
> > > Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> > > ---
> > > 
> > > Based on v3.5-rc2. Only build tested, I don't have a OF based device
> > > around at the moment.
> > 
> > Won't that conflict with i2c-powermac doing it its own way ?
> 
> Yup :(
> 
> I assume there is no chance that the powermac devicetree can be
> pre-processed to be compatible with of_i2c_register_devices?

That would be nasty and need a lot of testing on all sort of machines I
don't have direct access to.

Maybe we can set a flag somewhere to indicate to the core not to run the
default probing on that controller ?

Cheers,
Ben.

WARNING: multiple messages have this Message-ID (diff)
From: benh@kernel.crashing.org (Benjamin Herrenschmidt)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] i2c: let the core register devices from devicetree
Date: Thu, 14 Jun 2012 21:35:24 +1000	[thread overview]
Message-ID: <1339673724.9220.164.camel@pasglop> (raw)
In-Reply-To: <20120614091434.GB14419@pengutronix.de>

On Thu, 2012-06-14 at 11:14 +0200, Wolfram Sang wrote:
> On Thu, Jun 14, 2012 at 07:33:37AM +1000, Benjamin Herrenschmidt wrote:
> > On Wed, 2012-06-13 at 23:12 +0200, Wolfram Sang wrote:
> > > Currently, every driver has to do it on its own, but it should be done
> > > in the core, like we already do with board_info structs.
> > > 
> > > Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> > > ---
> > > 
> > > Based on v3.5-rc2. Only build tested, I don't have a OF based device
> > > around at the moment.
> > 
> > Won't that conflict with i2c-powermac doing it its own way ?
> 
> Yup :(
> 
> I assume there is no chance that the powermac devicetree can be
> pre-processed to be compatible with of_i2c_register_devices?

That would be nasty and need a lot of testing on all sort of machines I
don't have direct access to.

Maybe we can set a flag somewhere to indicate to the core not to run the
default probing on that controller ?

Cheers,
Ben.

  reply	other threads:[~2012-06-14 11:35 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 21:12 [PATCH] i2c: let the core register devices from devicetree Wolfram Sang
2012-06-13 21:12 ` Wolfram Sang
2012-06-13 21:12 ` Wolfram Sang
2012-06-13 21:33 ` Benjamin Herrenschmidt
2012-06-13 21:33   ` Benjamin Herrenschmidt
2012-06-13 21:33   ` Benjamin Herrenschmidt
2012-06-14  9:14   ` Wolfram Sang
2012-06-14  9:14     ` Wolfram Sang
2012-06-14  9:14     ` Wolfram Sang
2012-06-14 11:35     ` Benjamin Herrenschmidt [this message]
2012-06-14 11:35       ` Benjamin Herrenschmidt
2012-06-14 11:35       ` Benjamin Herrenschmidt
2012-06-13 22:03 ` Stephen Warren
2012-06-13 22:03   ` Stephen Warren
2012-06-13 22:03   ` Stephen Warren
2012-06-14  4:40 ` Grant Likely
2012-06-14  4:40   ` Grant Likely
2012-06-14  4:40   ` Grant Likely
2012-06-14  7:31 ` Peter Korsgaard
2012-06-14  7:31   ` Peter Korsgaard
2012-06-14  7:31   ` Peter Korsgaard
2012-06-14  7:53 ` viresh kumar
2012-06-14  7:53   ` viresh kumar
2012-06-14  7:53   ` viresh kumar
2012-06-14 10:28 ` Pawel Moll
2012-06-14 10:28   ` Pawel Moll
2012-06-14 10:28   ` Pawel Moll
2012-06-14 10:42 ` Jean Delvare
2012-06-14 10:42   ` Jean Delvare
2012-06-14 10:42   ` Jean Delvare
2012-06-14 17:29 ` Linus Walleij
2012-06-14 17:29   ` Linus Walleij
2012-06-14 17:29   ` Linus Walleij
2012-06-21  1:16 ` Barry Song
2012-06-21  1:16   ` Barry Song
2012-06-21  1:16   ` Barry Song

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=1339673724.9220.164.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=21cnbao@gmail.com \
    --cc=B29983@freescale.com \
    --cc=ben-linux@fluff.org \
    --cc=damm@opensource.se \
    --cc=deepak.sikri@st.com \
    --cc=dirk.brandewie@gmail.com \
    --cc=haojian.zhuang@marvell.com \
    --cc=hskinnemoen@gmail.com \
    --cc=kgene.kim@samsung.com \
    --cc=khali@linux-fr.org \
    --cc=lars@metafoo.de \
    --cc=ldewangan@nvidia.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=mchehab@redhat.com \
    --cc=pawel.moll@arm.com \
    --cc=rusty@rustcorp.com.au \
    --cc=s.hauer@pengutronix.de \
    --cc=swarren@nvidia.com \
    --cc=tony@atomide.com \
    --cc=viresh.kumar@st.com \
    --cc=w.sang@pengutronix.de \
    --cc=wolfram@the-dreams.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.