From patchwork Wed Jun 22 19:36:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 70684 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp74830qgy; Wed, 22 Jun 2016 12:37:47 -0700 (PDT) X-Received: by 10.66.43.240 with SMTP id z16mr7560910pal.114.1466624256481; Wed, 22 Jun 2016 12:37:36 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k126si1404443pfc.180.2016.06.22.12.37.36; Wed, 22 Jun 2016 12:37:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1751991AbcFVThf (ORCPT + 8 others); Wed, 22 Jun 2016 15:37:35 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34166 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751726AbcFVThe (ORCPT ); Wed, 22 Jun 2016 15:37:34 -0400 Received: by mail-pa0-f46.google.com with SMTP id bz2so19565299pad.1 for ; Wed, 22 Jun 2016 12:37:34 -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=nDG4+1S/zooSNud+1+J4fXlSPDoOOjgBa7AT9LQtpwE=; b=khdr7RZ9QyDWH+Brd9TbQZKSJ/wm0tx8s2ZSca5eTyQU+pv2Hqy4NFODpiLoAObUHk 13+ijY544VmgAxUBoC9iUwFQR72M5kWd7+JPeWysXRBjI6eECsosReHEcwUDYesNAfhZ gU047QH8DK+UriTl+z0+zkoCtinojmi7h567U= 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=nDG4+1S/zooSNud+1+J4fXlSPDoOOjgBa7AT9LQtpwE=; b=GLKZDqiOZaTMuxrxH2g94aZP6XOlbZb5gOjb2IsrQQOYk/fL1N1Ho2EkuF9LjZnO2s BO4J8yarG0pg+7hJm6+dz8Iu4dAq7XHGuH/UP9RPYhkNl6gv+SQVuIQhHNvwYMsdjzNG RK97yZlmkXER8oPANBU+pfur2SIi9Ic4xVa4d4IW0SxD9k0ZljO59zeVukg+sQbLlFPW mtYdd239BRQko7NuapHZz7bxN0STKqgzmUrkwNFn7Wz/IGu3thKAI2XzfnaSo7kfjxn7 nKbEsiQzhJzP6ueydvK5eQduKkZCMYlpVrg4EMNpGbYA98d0/Ln2EC0x4q4JBi2EV4fT n/PQ== X-Gm-Message-State: ALyK8tL+kQXN6dWIKGMXov6pvd7B8gspWnwoGYLElBZxkv59I6K+FajGByZD46cOdswnADdz X-Received: by 10.66.101.136 with SMTP id fg8mr36834796pab.144.1466624253930; Wed, 22 Jun 2016 12:37:33 -0700 (PDT) Received: from ubuntu.localdomain ([172.56.9.151]) by smtp.gmail.com with ESMTPSA id t4sm1563368paw.32.2016.06.22.12.37.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jun 2016 12:37:32 -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: geert@linux-m68k.org, k.kozlowski@samsung.com, andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Lina Iyer Subject: [PATCH 05/14] PM / doc: update device documentation for devices in IRQ safe PM domains Date: Wed, 22 Jun 2016 13:36:40 -0600 Message-Id: <1466624209-27432-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466624209-27432-1-git-send-email-lina.iyer@linaro.org> References: <1466624209-27432-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Update documentation to reflect the changes made to support IRQ safe PM domains. Signed-off-by: Lina Iyer --- Documentation/power/devices.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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..a622136 100644 --- a/Documentation/power/devices.txt +++ b/Documentation/power/devices.txt @@ -607,7 +607,17 @@ 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. + +Devices, by default, operate in process context. If a device can operate in +IRQ safe context that has to be explicitly indicated by setting the irq_safe +boolean inside struct generic_pm_domain to be true. Power domains by default, +operate in process context but could have devices that are IRQ safe. Such +power domains cannot be powered on/off during runtime PM. On the other hand, +IRQ safe PM domains that have IRQ safe devices may be powered off when all +the devices are in idle. An IRQ safe domain may only be attached as a +subdomain to another IRQ safe 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,