Thread (1 message) 1 message, 1 author, 2015-06-16
DORMANTno replies

[PATCH RFC 3/3] PM / Domains: Introduce generic PM domain for cpu domain

From: khilman@kernel.org (Kevin Hilman)
Date: 2015-06-16 15:50:19
Also in: linux-pm

Lina Iyer [off-list ref] writes:
On Mon, Jun 15 2015 at 12:43 -0600, Kevin Hilman wrote:
quoted
Lina Iyer [off-list ref] writes:
quoted
On Wed, Jun 10 2015 at 15:38 -0600, Kevin Hilman wrote:
quoted
Lina Iyer [off-list ref] writes:
quoted
I'm pretty sure the generic code will already add devices to genpds if
the genpd is using the of_genpd_* stuff.  That is why I'm wondering why
the extra stuff for CPUs is needed.
I dont see that automatically happening. When I attach a device, it
finds the corresponding genpd provider and attaches the device.  But I
dont see in any code that creates genpd and find the related device
nodes and adds them to the genpd.
[summary from our IRC discussion]

You still need to create the genpd, but it's dev_pm_domain_attach()
called by the platform device probe path that will automaticaly try to
attach a device with a power-domains property to the correct PM domain.

Note that this assumes that the genpds are created before the devices
are probed.

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