Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-24 Thread Ulf Hansson
On 23 January 2014 01:31, Tomasz Figa wrote: > Hi Stephen, > > > On 23.01.2014 01:18, Stephen Boyd wrote: >> >> On 01/11, Tomasz Figa wrote: >>> >>> + >>> +/** >>> + * of_genpd_lock() - Lock access to of_genpd_providers list >>> + */ >>> +static void of_genpd_lock(void) >>> +{ >>> +

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-24 Thread Philipp Zabel
Hi Tomasz, Am Sonntag, den 23.02.2014, 18:07 +0100 schrieb Tomasz Figa: > Hi Philipp, > > On 19.02.2014 17:53, Philipp Zabel wrote: > > Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa: > > [snip] > > >> + pd = of_genpd_get_from_provider(_args); > >> + if (IS_ERR(pd)) > >> +

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-24 Thread Philipp Zabel
Hi Tomasz, Am Sonntag, den 23.02.2014, 18:07 +0100 schrieb Tomasz Figa: Hi Philipp, On 19.02.2014 17:53, Philipp Zabel wrote: Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa: [snip] + pd = of_genpd_get_from_provider(pd_args); + if (IS_ERR(pd)) + return

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-24 Thread Ulf Hansson
On 23 January 2014 01:31, Tomasz Figa tomasz.f...@gmail.com wrote: Hi Stephen, On 23.01.2014 01:18, Stephen Boyd wrote: On 01/11, Tomasz Figa wrote: + +/** + * of_genpd_lock() - Lock access to of_genpd_providers list + */ +static void of_genpd_lock(void) +{ +

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-23 Thread Tomasz Figa
Hi Philipp, On 19.02.2014 17:53, Philipp Zabel wrote: Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa: [snip] + pd = of_genpd_get_from_provider(_args); + if (IS_ERR(pd)) + return PTR_ERR(pd); + + dev_dbg(dev, "adding to power domain %s\n",

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-23 Thread Tomasz Figa
Hi Philipp, On 19.02.2014 17:53, Philipp Zabel wrote: Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa: [snip] + pd = of_genpd_get_from_provider(pd_args); + if (IS_ERR(pd)) + return PTR_ERR(pd); + + dev_dbg(dev, adding to power domain %s\n,

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-19 Thread Philipp Zabel
Hi Tomasz, Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa: > This patch introduces generic code to perform power domain look-up using > device tree and automatically bind devices to their power domains. > Generic device tree binding is introduced to specify power domains of > devices

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-02-19 Thread Philipp Zabel
Hi Tomasz, Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa: This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree binding is introduced to specify power domains of devices in

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Stephen Boyd
On 01/20, Tomasz Figa wrote: > Hi Kevin, > > On 14.01.2014 16:42, Kevin Hilman wrote: > >Tomasz Figa writes: > > > >>This patch introduces generic code to perform power domain look-up using > >>device tree and automatically bind devices to their power domains. > >>Generic device tree binding is

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Tomasz Figa
Hi Stephen, On 23.01.2014 01:18, Stephen Boyd wrote: On 01/11, Tomasz Figa wrote: + +/** + * of_genpd_lock() - Lock access to of_genpd_providers list + */ +static void of_genpd_lock(void) +{ + mutex_lock(_genpd_mutex); +} + +/** + * of_genpd_unlock() - Unlock access to of_genpd_providers

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Stephen Boyd
On 01/11, Tomasz Figa wrote: > + > +/** > + * of_genpd_lock() - Lock access to of_genpd_providers list > + */ > +static void of_genpd_lock(void) > +{ > + mutex_lock(_genpd_mutex); > +} > + > +/** > + * of_genpd_unlock() - Unlock access to of_genpd_providers list > + */ > +static void

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Lorenzo Pieralisi
On Mon, Jan 20, 2014 at 05:32:53PM +, Tomasz Figa wrote: > Hi Lorenzo, > > On 16.01.2014 17:34, Lorenzo Pieralisi wrote: > > Hi Tomasz, > > > > thank you for posting this series. I would like to use the DT bindings > > for power domains in the bindings for C-states on ARM: > > > >

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Lorenzo Pieralisi
On Mon, Jan 20, 2014 at 05:32:53PM +, Tomasz Figa wrote: Hi Lorenzo, On 16.01.2014 17:34, Lorenzo Pieralisi wrote: Hi Tomasz, thank you for posting this series. I would like to use the DT bindings for power domains in the bindings for C-states on ARM:

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Stephen Boyd
On 01/11, Tomasz Figa wrote: + +/** + * of_genpd_lock() - Lock access to of_genpd_providers list + */ +static void of_genpd_lock(void) +{ + mutex_lock(of_genpd_mutex); +} + +/** + * of_genpd_unlock() - Unlock access to of_genpd_providers list + */ +static void

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Tomasz Figa
Hi Stephen, On 23.01.2014 01:18, Stephen Boyd wrote: On 01/11, Tomasz Figa wrote: + +/** + * of_genpd_lock() - Lock access to of_genpd_providers list + */ +static void of_genpd_lock(void) +{ + mutex_lock(of_genpd_mutex); +} + +/** + * of_genpd_unlock() - Unlock access to

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-22 Thread Stephen Boyd
On 01/20, Tomasz Figa wrote: Hi Kevin, On 14.01.2014 16:42, Kevin Hilman wrote: Tomasz Figa tomasz.f...@gmail.com writes: This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-20 Thread Tomasz Figa
Hi Lorenzo, On 16.01.2014 17:34, Lorenzo Pieralisi wrote: Hi Tomasz, thank you for posting this series. I would like to use the DT bindings for power domains in the bindings for C-states on ARM: http://comments.gmane.org/gmane.linux.power-management.general/41012 and in particular link a

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-20 Thread Tomasz Figa
Hi Kevin, On 14.01.2014 16:42, Kevin Hilman wrote: Tomasz Figa writes: This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree binding is introduced to specify power domains of devices in

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-20 Thread Tomasz Figa
Hi Kevin, On 14.01.2014 16:42, Kevin Hilman wrote: Tomasz Figa tomasz.f...@gmail.com writes: This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree binding is introduced to specify power

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-20 Thread Tomasz Figa
Hi Lorenzo, On 16.01.2014 17:34, Lorenzo Pieralisi wrote: Hi Tomasz, thank you for posting this series. I would like to use the DT bindings for power domains in the bindings for C-states on ARM: http://comments.gmane.org/gmane.linux.power-management.general/41012 and in particular link a

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-16 Thread Lorenzo Pieralisi
Hi Tomasz, thank you for posting this series. I would like to use the DT bindings for power domains in the bindings for C-states on ARM: http://comments.gmane.org/gmane.linux.power-management.general/41012 and in particular link a given C-state to a given power domain so that the kernel will

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-16 Thread Lorenzo Pieralisi
Hi Tomasz, thank you for posting this series. I would like to use the DT bindings for power domains in the bindings for C-states on ARM: http://comments.gmane.org/gmane.linux.power-management.general/41012 and in particular link a given C-state to a given power domain so that the kernel will

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-14 Thread Kevin Hilman
Tomasz Figa writes: > This patch introduces generic code to perform power domain look-up using > device tree and automatically bind devices to their power domains. > Generic device tree binding is introduced to specify power domains of > devices in their device tree nodes. > > Backwards

Re: [PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-14 Thread Kevin Hilman
Tomasz Figa tomasz.f...@gmail.com writes: This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree binding is introduced to specify power domains of devices in their device tree nodes.

[PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-11 Thread Tomasz Figa
This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree binding is introduced to specify power domains of devices in their device tree nodes. Backwards compatibility with legacy

[PATCH RFC 04/10] base: power: Add generic OF-based power domain look-up

2014-01-11 Thread Tomasz Figa
This patch introduces generic code to perform power domain look-up using device tree and automatically bind devices to their power domains. Generic device tree binding is introduced to specify power domains of devices in their device tree nodes. Backwards compatibility with legacy