From: Guennadi Liakhovetski Date: Thu, 02 Jun 2011 07:29:35 +0000 Subject: Re: [PATCH 1/5] PM / Runtime: Support for generic I/O power domains Message-Id: List-Id: References: <201104290154.12966.rjw@sisk.pl> <201105160117.46927.rjw@sisk.pl> <201105280115.14556.rjw@sisk.pl> <201105280117.17883.rjw@sisk.pl> In-Reply-To: <201105280117.17883.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Rafael J. Wysocki" Cc: Linux PM mailing list , Greg KH , LKML , Kevin Hilman , Grant Likely , Magnus Damm , linux-sh@vger.kernel.org, MyungJoo Ham , Alan Stern On Sat, 28 May 2011, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Introduce common headers, helper functions and callbacks allowing > platforms to use simple generic power domains for runtime power > management. > > Introduce struct generic_power_domain to be used for representing > power domains that each contain a number of devices and may be > master domains or subdomains with respect to other power domains. > Among other things, this structure includes callbacks to be > provided by platforms for performing specific tasks related to > power management (i.e. ->stop_device() may disable a device's > clocks, while ->start_device() may enable them, ->power_off() is > supposed to remove power from the entire power domain > and ->power_on() is supposed to restore it). I've got a generic question to this: do we have any examples of power-domain specific ->start_device() and ->stop_device() callbacks? A common case is, when these callbacks start and stop clocks, associated with the device, but this is not power-domain specific, right? Do we have any examples of different power domains in a system, having different these calbacks, but all devices in one power-domain, having the same ones? Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/