[PATCH V2] PM / Domains: Add pm_genpd_lookup() API to lookup domain by firmware node
Ulf Hansson
ulf.hansson at linaro.org
Mon Dec 1 02:26:10 PST 2014
On 29 November 2014 at 01:30, Rafael J. Wysocki <rjw at rjwysocki.net> wrote:
> On Friday, November 28, 2014 11:38:35 AM Ulf Hansson wrote:
>> In a step to move away from using genpd's name based APIs, such as the
>> pm_genpd_add_subdomain_names(), provide an API to lookup an already
>> initialized generic PM domain by its firmware node.
>>
>> This API would typically be a called from SOC specific code, to fetch a
>> handle to the domain. Especially convenient to configure subdomains and
>> when the hierarchy of the domains are described in DT.
>>
>> Do note, before pm_genpd_init() is invoked to initialize a generic PM
>> domain, it's the callers responsibility to assign the new ->fwnode
>> pointer in the struct generic_pm_domain, to enable pm_genpd_lookup() to
>> find the domain.
>>
>> Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
>
> I have no problems with that, but do you have a user for it?
Amit Daniel Kachhap, posted a patchset which is adding subdomains
configured from DT for Exynos. It's from there the idea to this patch
comes from. Amit is about to post a new version, based on this patch.
https://lkml.org/lkml/2014/11/24/290
Kind regards
Uffe
More information about the linux-arm-kernel
mailing list