Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754606Ab1EOXes (ORCPT ); Sun, 15 May 2011 19:34:48 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:53468 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138Ab1EOXeQ (ORCPT ); Sun, 15 May 2011 19:34:16 -0400 From: "Rafael J. Wysocki" To: Linux PM mailing list Subject: [PATCH 0/6] PM: Support for generic I/O power domains (v3) Date: Mon, 16 May 2011 01:17:46 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.39-rc7+; KDE/4.6.0; x86_64; ; ) Cc: Greg KH , LKML , Kevin Hilman , Grant Likely , Magnus Damm , linux-sh@vger.kernel.org, MyungJoo Ham , Guennadi Liakhovetski , Alan Stern References: <201104290154.12966.rjw@sisk.pl> <201105082320.57185.rjw@sisk.pl> In-Reply-To: <201105082320.57185.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201105160117.46927.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2629 Lines: 54 Hi, This is the second update of the patchset adding support for generic I/O power domains. Patches [1-5/6] have been posted and discussed already, although in a slightly different form. The last patch is new. The short description of all the patches and changes since the previous update follow. The patches are on top of the branch at: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6.git power-domains which is going to be pushed for 2.6.40. I'd like to push patch [1/6] for 2.6.40 too, since it's only slightly related to the rest of the patchset that depends on it. Patches [2-5/6] are regarded as 2.6.41 material. Patch [6/6] is an RFC and it may become 2.6.41 material depending on what you think. The entire patchset has been tested with an ARM shmobile Mackerel board. [1/6] - Introduction of generic prepare and complete callbacks for subsystems. This patch hasn't changed since it was posted last time. [2/6] - Support for generic I/O power domains (runtime PM part). There are a few changes relative to the previous version. First, I added CONFIG_PM_GENERIC_DOMAINS to be selected by platforms wanting to use the new code (this allows, for example, x86 to avoid compiling it unnecessarily). Second, the loop over devices in __pm_genpd_poweroff() doesn't increment "not_suspended" for devices without drivers, so that they don't prevent the domain from being powered down. Finally, the kerneldoc comment for pm_genpd_init() has been fixed. [3/6] - Support for generic I/O power domains (system sleep part). pm_genpd_prepare() has been modified to execute pm_runtime_resume() for the device is the domain's power_is_off flag is clear (the device needs to be "active" from the runtime PM viewpoint, so that we can save its registers before suspending the whole system). Accordingly, pm_genpd_suspend() and pm_genpd_freeze() don't call pm_runtime_resume() any more (they don't need to do that). [4/6] - Implementation of generic I/O power domains support for SH7372. [5/6] - Introduction of SH7372's A4MP power domain. [6/6] - [RFC] Support of multiple power domain states. This shows how I think we can handle multiple power domain states on top of the previous patches. Comments welcome. Thanks, Rafael -- 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/