Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761115Ab1D3BLZ (ORCPT ); Fri, 29 Apr 2011 21:11:25 -0400 Received: from cantor.suse.de ([195.135.220.2]:36129 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760644Ab1D3BLY (ORCPT ); Fri, 29 Apr 2011 21:11:24 -0400 Date: Fri, 29 Apr 2011 18:08:18 -0700 From: Greg KH To: "Rafael J. Wysocki" Cc: Linux PM mailing list , LKML , Kevin Hilman , Grant Likely , Magnus Damm , linux-sh@vger.kernel.org Subject: Re: [Update][RFC][PATCH 1/2] PM / Runtime: Support for generic I/O power domains (v2) Message-ID: <20110430010818.GA32601@suse.de> References: <201104290154.12966.rjw@sisk.pl> <201104290154.56145.rjw@sisk.pl> <201104300254.46973.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201104300254.46973.rjw@sisk.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1830 Lines: 44 On Sat, Apr 30, 2011 at 02:54:46AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Introcude 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_on() is > supposed to remove power from the entire power domain > and ->power_off() is supposed to restore it). > > Introduce functions that can be used as power domain runtime PM > callbacks, pm_genpd_runtime_suspend() and pm_genpd_runtime_resume(), > as well as helper functions for the initialization of a power > domain represented by a struct generic_power_domain object, > adding a device to or removing a device from it and adding or > removing subdomains. > > Signed-off-by: Rafael J. Wysocki > Acked-by: Greg Kroah-Hartman > --- > > Hi, > > This version of the patch fixes a bug that caused pm_runtime_suspend() > (and equivalent) to return -EBUSY erroneously when suspending the last > active device in a power domain. It has been tested on an ARM shmobile > system. > > Greg, I hope your ACK is still valid. :-) Yes, it is. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/