linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFD] PM_GENERIC_DOMAINS && !PM
@ 2015-11-30 16:42 Jon Hunter
  2015-11-30 22:42 ` Rafael J. Wysocki
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Hunter @ 2015-11-30 16:42 UTC (permalink / raw)
  To: Rafael J. Wysocki, Kevin Hilman, Ulf Hansson, Geert Uytterhoeven,
	linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org

Currently, if PM is disabled in the kernel then so is
PM_GENERIC_DOMAINS. Although this makes sense, I can see a scenario
where having minimal genpd support could be advantageous.

I am looking at enabling genpd for Tegra and ideally we would populate
the power domains when the platform device is probed for the power
management controller (PMC) as this device contains the registers for
enabling the power domains.

This works fine for the case where PM is enabled, but I am concerned
about the case where we don't have PM enabled in the kernel. In this
case, because domains are not populated early during the boot process, I
am concerned that there is a chance for a device dependent on a power
domain to be probed before the PMC device has been probed and had chance
to turn on any power domains.

Obviously, we could try and play with the ordering of devices, but it
seems to me that even if PM is not enabled, it would still be nice to
register power domains with the kernel and allow devices to attach to
them and only probe the device if they are powered.

Does this sound reasonable or is there a better approach?

Cheers
Jon

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

end of thread, other threads:[~2015-12-02 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-30 16:42 [RFD] PM_GENERIC_DOMAINS && !PM Jon Hunter
2015-11-30 22:42 ` Rafael J. Wysocki
2015-12-01 15:38   ` Jon Hunter
2015-12-01 16:18     ` Thierry Reding
2015-12-02  1:35       ` Rafael J. Wysocki
     [not found]         ` <1995321.JkVMSghsar-sKB8Sp2ER+y1GS7QM15AGw@public.gmane.org>
2015-12-02 15:40           ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).