Thread (8 messages) 8 messages, 3 authors, 2014-12-05
STALE4215d

[PATCH V2] PM / Domains: Add pm_genpd_lookup() API to lookup domain by firmware node

From: Ulf Hansson <hidden>
Date: 2014-12-01 10:26:10
Also in: linux-pm, linux-samsung-soc

On 29 November 2014 at 01:30, Rafael J. Wysocki [off-list ref] wrote:
On Friday, November 28, 2014 11:38:35 AM Ulf Hansson wrote:
quoted
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 <redacted>
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help