From patchwork Fri Aug 26 20:17:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 74846 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp545057qga; Fri, 26 Aug 2016 13:21:11 -0700 (PDT) X-Received: by 10.66.219.200 with SMTP id pq8mr9188916pac.75.1472242871592; Fri, 26 Aug 2016 13:21:11 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id j12si22800569pat.285.2016.08.26.13.21.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Aug 2016 13:21:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; 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-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdNbm-000137-4F; Fri, 26 Aug 2016 20:20:10 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdNaR-00006P-Cy for linux-arm-kernel@lists.infradead.org; Fri, 26 Aug 2016 20:18:49 +0000 Received: by mail-pf0-x235.google.com with SMTP id h186so31631003pfg.3 for ; Fri, 26 Aug 2016 13:18:27 -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=KD5bdN3kFQiD8apOfDOw6MUj3l/QbrJj5RiIV851eqO/CrJQN9VE1F5Jtf3uY2FSyX spOEjCW1DV+60tUCEoZ5nhJJKCr07FQOBTCmoMbmSAkV4Q2K0qT0LXsnH/9D/uTNXOnm t4IbHl88goAjnvQLX6HFGbQISsjkDR+w4Ffxo= 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=JzZ0ygH3CrEaIqbIj9zwX57d9Q8PF/Yge60RXxzqRVqLUBAIc+m7cSv799+m5KcREp GZerPp6gT5aFwnvdiYUk7ur6khtseroUpGscZqan4r9QN+rdlMJewoeqkS0QiahO9Sit uuvBaSj477eZxUdLCxIdCYPoM0TL11Ok8kxBqQRKMbe9xRc3erPlzUCFIunF+C1vfHo7 YT6AGuPki9grlVvML5yLi8G/TvN7vTbkskoQGh4YK++4gcyvASX1EFCwVjLy+PxXphZG R0EkwWLxIUmZ49SEwuu36rC14cfl8Bs6EpN+0O3UfREZ5EykvsR6TDCX/gl2upihXjND bUEQ== X-Gm-Message-State: AE9vXwN6gB5GNZVIybAf2CBT2xYcqSCTOeGnbyNKyXYL5LPcYpar9ArxGrGN1aZudffs5jLP X-Received: by 10.98.204.74 with SMTP id a71mr9135582pfg.149.1472242706572; Fri, 26 Aug 2016 13:18:26 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id m128sm30761463pfm.42.2016.08.26.13.18.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Aug 2016 13:18:25 -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 Subject: [PATCH v5 05/16] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Fri, 26 Aug 2016 14:17:47 -0600 Message-Id: <1472242678-33700-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472242678-33700-1-git-send-email-lina.iyer@linaro.org> References: <1472242678-33700-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160826_131847_706914_DE45DCAC X-CRM114-Status: GOOD ( 11.47 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:235 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lorenzo.pieralisi@arm.com, Juri.Lelli@arm.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, brendan.jackman@arm.com, sudeep.holla@arm.com, andy.gross@linaro.org, Lina Iyer MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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,