Thread (29 messages) 29 messages, 3 authors, 2016-08-12
STALE3596d

[RFC PATCH 1/8] PM / Domains: Add new helper functions for device-tree

From: jonathanh@nvidia.com (Jon Hunter)
Date: 2016-06-22 14:58:58
Also in: linux-pm, linux-tegra

Hi Ulf,

On 04/03/16 11:23, Jon Hunter wrote:
Ideally, if we are returning a reference to a PM domain via a call to
of_genpd_get_from_provider(), then we should keep track of such
references via a reference count. The reference count could then be used
to determine if a PM domain can be safely removed. Alternatively, it is
possible to avoid such external references by providing APIs to access
the PM domain and hence, eliminate any calls to
of_genpd_get_from_provider().

Add new helper functions for adding a device and a subdomain to a PM
domain when using device-tree, so that external calls to
of_genpd_get_from_provider() can be removed.
While we are at it, does it make sense to add helpers for
of_genpd_remove_device/subdomain() as well? Seems that these could be
useful for doing the inverse when cleaning up.

Cheers
Jon

-- 
nvpublic
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help