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: 9390295 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 6CB0C60762 for ; Fri, 21 Oct 2016 22:55:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53A902A183 for ; Fri, 21 Oct 2016 22:55:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 465052A18F; Fri, 21 Oct 2016 22:55:15 +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 F1FA52A183 for ; Fri, 21 Oct 2016 22:55:14 +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 1bxigv-0008Tw-Pz; Fri, 21 Oct 2016 22:53:33 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxigs-0008Lv-JH for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2016 22:53:31 +0000 Received: by mail-pf0-x22a.google.com with SMTP id e6so64098504pfk.3 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=fkxodHNL7SddekLqoCzru148j1qqWA7zF7/N6Dt1yH54Bj9X1Kpn7XrfOryFUq2jG3 osq24XDJhkOJ4z0jVmUfpa0vie4PpTnCHe/WqitF77cCCAhtTVS8azbnzZz/hHZiEPBf m7HmIU2/eVHEV3LN58g6IUcBjpUtvVQdqMstmxyQpW4wZWQO6px5YyMeG5sP8xm9qRLW w/9YLGninagF7iCBQQ9XMa/57Eops0kqbCNDgn/Bi7wYyWtdBPryaZ/3gxiWuh6/vne/ 3W1f73yO+SkBItS8MvoTqefvLXmkbLZS8dUJT5lZyKtxm6ztDbKTfP5NPZOY9qzCHGri Lo0w== X-Gm-Message-State: ABUngvfFxFV3uuCCeUrhVztNOJZ8+Veefh3YOBXDpzKrM2QxkF8oDQB/Ik+DwRaohmoyq+HJ 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161021_155330_722318_FACE0F44 X-CRM114-Status: GOOD ( 13.47 ) 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 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(-) 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 ---------------------------------