From patchwork Fri Oct 21 22:52:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 78752 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1531616qge; Fri, 21 Oct 2016 15:53:12 -0700 (PDT) X-Received: by 10.98.16.203 with SMTP id 72mr5746130pfq.57.1477090392137; Fri, 21 Oct 2016 15:53:12 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t65si4411446pfb.51.2016.10.21.15.53.11; Fri, 21 Oct 2016 15:53:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934425AbcJUWxK (ORCPT + 14 others); Fri, 21 Oct 2016 18:53:10 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:35155 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932774AbcJUWxJ (ORCPT ); Fri, 21 Oct 2016 18:53:09 -0400 Received: by mail-pf0-f181.google.com with SMTP id s8so64108315pfj.2 for ; Fri, 21 Oct 2016 15:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=w0kFwaTMB1y78oMsPDgnCdeafQEawha0dUDi9MhXC0s=; b=aNH6+WaWMAILmEOBq/TwhfSaZt29ihuoE3BNhrFUamLlP7p4In9/NtWODLrMEQVecH uRAWhOtuYR3SOPvLXurp6vLxfEuwHlt68XAw1Z+XjWR3Db3a5O5PO5dA4PrqejuIUB3Y yxx+Rkn4fulczle7ia6zYvIVUdmN1vL3L/LMc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=w0kFwaTMB1y78oMsPDgnCdeafQEawha0dUDi9MhXC0s=; b=mbs4+CkRsqfSARRQQELBkB0gdrTtzjX5q2pJdYTYqkJRxsQhPcebvNy79XDeSZNHsX AXptori4UXliUU/VXEczLMZPnBEyrcA5/z9Ax+hehI/L3J3YUMiG0lpGmQuJmjqgl/Bk +WZkSPShD37RDQa0NDU4wyyiXUbTlaiOTljnGpFWXIddpfBhPb59LSmpu8QLsO5d6cwh tH5IrDA6DVo5AWUWAgc/1yI4uISE4gW5y7pe85kHQVhdAPQ9epwFxGpyRthxCisbGRwO 7DA90TvTCMLLTWojthxsHS1Ym8Pg6tqIC8uXdwoIzS4qb3t7mg4VD+/KNlnR447DYUPf kO7g== X-Gm-Message-State: ABUngvf/1+X4UYMhRgvh8+ol8bnwkD+I3j/lfYa/7k8+8yht+ib2EtzSTbhmyHT80jrCuizr X-Received: by 10.99.63.193 with SMTP id m184mr4689778pga.62.1477090388777; Fri, 21 Oct 2016 15:53:08 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id sv8sm7478991pab.18.2016.10.21.15.53.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Oct 2016 15:53:07 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, brendan.jackman@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Juri.Lelli@arm.com, Lina Iyer Subject: [PATCH v3 [fix]] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Fri, 21 Oct 2016 15:52:55 -0700 Message-Id: <1477090375-13814-1-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20161021152313.GC72940@linaro.org> References: <20161021152313.GC72940@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Update documentation to reflect the changes made to support IRQ safe PM domains. Signed-off-by: Lina Iyer Acked-by: Ulf Hansson --- Changes since v3: - Moved para to the end of the section - Added clause for all IRQ safe devices in a domain - Cleanup explanation of nested domains --- Documentation/power/devices.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/power/devices.txt b/Documentation/power/devices.txt index 8ba6625..9218ce6 100644 --- a/Documentation/power/devices.txt +++ b/Documentation/power/devices.txt @@ -607,7 +607,9 @@ individually. Instead, a set of devices sharing a power resource can be put into a low-power state together at the same time by turning off the shared power resource. Of course, they also need to be put into the full-power state together, by turning the shared power resource on. A set of devices with this -property is often referred to as a power domain. +property is often referred to as a power domain. A power domain may also be +nested inside another power domain. The nested domain is referred to as the +sub-domain of the parent domain. Support for power domains is provided through the pm_domain field of struct device. This field is a pointer to an object of type struct dev_pm_domain, @@ -629,6 +631,13 @@ support for power domains into subsystem-level callbacks, for example by modifying the platform bus type. Other platforms need not implement it or take it into account in any way. +Devices and PM domains may be defined as IRQ-safe, if they can be powered +on/off even when the IRQs are disabled. An IRQ-safe device in a domain will +disallow power management on the domain, unless the domain is also defined as +IRQ-safe. In other words, a domain containing all IRQ-safe devices must also +be defined as IRQ-safe. Another restriction this framework imposes on the +parent domain of an IRQ-safe domain is that the parent domain must also be +defined as IRQ-safe. Device Low Power (suspend) States ---------------------------------