From patchwork Mon Oct 24 22:21:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9393461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88B7660231 for ; Mon, 24 Oct 2016 22:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78C2829120 for ; Mon, 24 Oct 2016 22:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D4B929174; Mon, 24 Oct 2016 22:26:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0113429120 for ; Mon, 24 Oct 2016 22:26:57 +0000 (UTC) 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 1byngK-00044c-AE; Mon, 24 Oct 2016 22:25:24 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bynd4-00013s-MF for linux-arm-kernel@bombadil.infradead.org; Mon, 24 Oct 2016 22:22:02 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bynd2-00006K-3e for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2016 22:22:01 +0000 Received: by mail-pf0-x22a.google.com with SMTP id e6so105896268pfk.3 for ; Mon, 24 Oct 2016 15:21:35 -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=zSQ/j5SlwPDRjzcKED+Rxq9enanqoZyfzaYaf43KtVg=; b=N/4lYYiKGcd+y34lA5mU0+fYyElNmoNhfxrrV+fcB148vW9x6Wp5nOozE10wVFHoR0 q4nBi2D6e6UKMa+31d/rAs1Uwn3Epn/+4ELr/b+UCeoSsYbP9kOzfI3U6zDxmJPl/Xxl n/FoG3hGyjxkCD64lGC3afvc31Zp1JKabFYmQ= 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=zSQ/j5SlwPDRjzcKED+Rxq9enanqoZyfzaYaf43KtVg=; b=BvijrB5zEr0xge0RDtkGoVCNTxU9FK3FI9Vxnr9BiHokMClOs/rFyltqtOisxvnF9c Zc17pX47wReHgwITpeHC/czguZ6wRvxBX15ytJLMN+1gwr1xKgMGJPMNTnw81unnCs1Y ZBToqp62QG1/bJseIbSjGU68lzZ7l1T81E3Fe2pCmGKj7rywu/4wi9e66CWhtpaZD1BG 7dIhMO2Pijy8+puAFbpm5/8Ajg4hK8JdtAMv+G4UwDTed4ULgBocMqQQRBWPszccFvgW 0Vs6Efc5krVRZRRAoHpTt6XNK9L59RxEy1VwGCrUqnsdFc/jBfhZWnCR98OpC+WysAf4 +CbA== X-Gm-Message-State: ABUngve76TkAKi5GFjdPzn60KMnCbn9+wNP7HNpuYC45E1nqSsWvF6i5tNu2C6IF8BmUkcxj X-Received: by 10.98.59.66 with SMTP id i63mr33037768pfa.124.1477347694507; Mon, 24 Oct 2016 15:21:34 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x190sm27674408pfd.20.2016.10.24.15.21.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 15:21:33 -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 v4 9/9] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Mon, 24 Oct 2016 15:21:08 -0700 Message-Id: <1477347668-41901-10-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477347668-41901-1-git-send-email-lina.iyer@linaro.org> References: <1477347668-41901-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161024_182200_275542_38AF8A4D X-CRM114-Status: GOOD ( 12.06 ) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Update documentation to reflect the changes made to support IRQ safe PM domains. Signed-off-by: Lina Iyer Signed-off-by: Rafael J. Wysocki --- Documentation/power/devices.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/power/devices.txt b/Documentation/power/devices.txt index 8ba6625..73ddea3 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,16 @@ 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 may be defined as IRQ-safe which indicates to the PM core that their +runtime PM callbacks may be invoked with disabled interrupts (see +Documentation/power/runtime_pm.txt for more information). If an IRQ-safe +device belongs to a PM domain, the runtime PM of the domain will be +disallowed, unless the domain itself is defined as IRQ-safe. However, it +makes sense to define a PM domain as IRQ-safe only if all the devices in it +are IRQ-safe. Moreover, if an IRQ-safe domain has a parent domain, the runtime +PM of the parent is only allowed if the parent itself is IRQ-safe too with the +additional restriction that all child domains of an IRQ-safe parent must also +be IRQ-safe. Device Low Power (suspend) States ---------------------------------