mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] PM / Domains: Allow drivers to attach PM domain callbacks to devices at any time
@ 2012-07-03 10:27 Rafael J. Wysocki
  2012-07-03 10:28 ` [PATCH 1/2] PM / Domains: Add device domain data reference counter Rafael J. Wysocki
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2012-07-03 10:27 UTC (permalink / raw)
  To: Linux PM list; +Cc: LKML, Magnus Damm, Arnd Bergmann

Hi,

This is a follow-up of the discussion I had with Arnd and Magnus during
the LCJ last month.

Namely, one of the limitations of the current generic PM domains code is that
pm_genpd_add_callbacks() has to be executed after the device in question has
been added to a PM domain.  This means that, if a driver wants to run this
routine from its .probe() callback, it cannot be registered before adding
the device to the PM domain, which potentially may be a problem when device
trees get involved into the system initialization.

For this reason, it is desirable to allow pm_genpd_add_callbacks() to be called
for devices that haven't been added to any generic PM domains yet and the
following patches attempt to make that happen.

[1/2] Add reference counter for objects used to store PM domains data related
      to devices.
[2/2] Make it possible to call pm_genpd_add_callbacks() before the device is
      added to a PM domain.

Thanks,
Rafael


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-05 19:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-03 10:27 [PATCH 0/2] PM / Domains: Allow drivers to attach PM domain callbacks to devices at any time Rafael J. Wysocki
2012-07-03 10:28 ` [PATCH 1/2] PM / Domains: Add device domain data reference counter Rafael J. Wysocki
2012-07-03 10:29 ` [PATCH 2/2] PM / Domains: Allow device callbacks to be added at any time Rafael J. Wysocki
2012-07-05 19:46 ` [PATCH 0/2] PM / Domains: Allow drivers to attach PM domain callbacks to devices " Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®