[PATCH v3 1/3] base: power: Add generic OF-based power domain look-up

Ulf Hansson ulf.hansson at linaro.org
Tue May 6 10:52:47 PDT 2014


On 24 April 2014 11:40, Ulf Hansson <ulf.hansson at linaro.org> wrote:
> On 23 April 2014 18:46, Tomasz Figa <t.figa at samsung.com> wrote:
>> 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 Samsung-specific power domain
>> bindings is provided, but for now the new code is not compiled when
>> CONFIG_ARCH_EXYNOS is selected to avoid collision with legacy code. This
>> will change as soon as Exynos power domain code gets converted to use
>> the generic framework in further patch.
>>
>> Signed-off-by: Tomasz Figa <t.figa at samsung.com>
>> Reviewed-by: Mark Brown <broonie at linaro.org>
>> Reviewed-by: Kevin Hilman <khilman at linaro.org>
>> Reviewed-by: Philipp Zabel <philipp.zabel at gmail.com>
>> [on i.MX6 GK802]
>> Tested-by: Philipp Zabel <philipp.zabel at gmail.com>

Reviewed-by: Ulf Hansson <ulf.hansson at linaro.org>

I also implemented some test-support for genpd for a ux500 SOC as well
- tested passed successfully. :-)

[snip]

>> +
>> +#ifdef CONFIG_PM_GENERIC_DOMAINS_OF
>
> I remember we discussed this earlier, but I don't think we should add
> another Kconfig for this. CONFIG_OF should be enough.
>
> I realize that we need to handle "Samsung-specific bindings", to not
> break the Exynos pm domain. Maybe adding the parsing of them into the
> generic power domain in the same patch as when we switch Exynos to the
> new API would do the trick?

I realized that there already exists CONFIG_PM_GENERIC_DOMAINS_SLEEP
and CONFIG_PM_GENERIC_DOMAINS_RUNTIME, which serves similar purpose as
CONFIG_PM_GENERIC_DOMAINS_OF would.

So, let's ignore my previous comment and move on.

Kind regards
Ulf Hansson



More information about the linux-arm-kernel mailing list