On 29 November 2014 at 01:30, Rafael J. Wysocki <r...@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.hans...@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 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html