Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-16 Thread Stephen Warren
On 11/16/2012 04:36 AM, Linus Walleij wrote: > On Thu, Nov 15, 2012 at 7:23 PM, Stephen Warren wrote: >> On 11/15/2012 07:03 AM, Linus Walleij wrote: > >>> OK I'll have to come up with a patch to the device core >>> instead... it'll be much simpler anyway and if both of you guys >>> can back it I

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-16 Thread Linus Walleij
On Thu, Nov 15, 2012 at 7:23 PM, Stephen Warren wrote: > On 11/15/2012 07:03 AM, Linus Walleij wrote: >> OK I'll have to come up with a patch to the device core >> instead... it'll be much simpler anyway and if both of you guys >> can back it I guess Greg might be OK with it too. > > I did have o

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Stephen Warren
On 11/15/2012 10:24 AM, Linus Walleij wrote: > On Thu, Nov 15, 2012 at 3:26 PM, Thomas Petazzoni > wrote: > >> At ELCE, I've discussed with one person having an interesting use case: >> they are using the same pin for two different purposes during the >> system operation. >> >> At boot time, this

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Stephen Warren
On 11/15/2012 07:03 AM, Linus Walleij wrote: > On Tue, Nov 13, 2012 at 7:35 AM, Mark Brown > wrote: >> On Mon, Nov 12, 2012 at 01:21:40PM -0700, Stephen Warren wrote: >>> On 11/11/2012 05:22 AM, Linus Walleij wrote: >> Another solution that was discussed was whether to move the default p

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Linus Walleij
On Thu, Nov 15, 2012 at 3:26 PM, Thomas Petazzoni wrote: > At ELCE, I've discussed with one person having an interesting use case: > they are using the same pin for two different purposes during the > system operation. > > At boot time, this pin is muxed as a SPI pin and is used to program the >

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Thomas Petazzoni
Linus, On Thu, 15 Nov 2012 15:03:40 +0100, Linus Walleij wrote: > > I have to say that I agree with this, notifiers seem to make life more > > complicated for limited gain. Otherwise I guess we could enhance > > notifiers so that they're able to trigger deferrals? > > OK I'll have to come up wi

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Linus Walleij
On Tue, Nov 13, 2012 at 7:35 AM, Mark Brown wrote: > On Mon, Nov 12, 2012 at 01:21:40PM -0700, Stephen Warren wrote: >> On 11/11/2012 05:22 AM, Linus Walleij wrote: > >> > Another solution that was discussed was whether to move >> > the default pinctrl handle and state grab to the device >> > core

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-12 Thread Mark Brown
On Mon, Nov 12, 2012 at 01:21:40PM -0700, Stephen Warren wrote: > On 11/11/2012 05:22 AM, Linus Walleij wrote: > > Another solution that was discussed was whether to move > > the default pinctrl handle and state grab to the device > > core as an optional field in struct device itself, but > > I'd

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-12 Thread Stephen Warren
On 11/11/2012 05:22 AM, Linus Walleij wrote: > From: Linus Walleij > > This makes the pinctrl subsystem auto-grab the pinctrl handle and > set the "default" (PINCTRL_STATE_DEFAULT) state for every device > that is present on the platform or AMBA (PrimeCell) bus right > before probe. This will acc

[PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-11 Thread Linus Walleij
From: Linus Walleij This makes the pinctrl subsystem auto-grab the pinctrl handle and set the "default" (PINCTRL_STATE_DEFAULT) state for every device that is present on the platform or AMBA (PrimeCell) bus right before probe. This will account for the lion's share of embedded silicon devcies. Th