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: 9301993 X-Patchwork-Delegate: agross@codeaurora.org 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 4B2E360757 for ; Fri, 26 Aug 2016 20:19:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CB752963A for ; Fri, 26 Aug 2016 20:19:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 317D829652; Fri, 26 Aug 2016 20:19:02 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1BC32963A for ; Fri, 26 Aug 2016 20:19:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753743AbcHZUSi (ORCPT ); Fri, 26 Aug 2016 16:18:38 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34747 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbcHZUS1 (ORCPT ); Fri, 26 Aug 2016 16:18:27 -0400 Received: by mail-pf0-f181.google.com with SMTP id p64so31714789pfb.1 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=LFjvux656xNLTdh02I33Q9uJ32tkBtP1y54Cg9gXx5R346/Np3HE9Zmr6ftV3KUbZg ceanEYkvjz4bSpQAlhkcGel/ZC4O595FXdV2w0Hs+HVP3xV8NJss/4ylCmmNafa85pxU 4tLnEo1wSlm+I4JDZ16d3G/ODt6NGriSFOsjiF4Du5HU+7TA2mw8y97C8HEmyFb0Vg8s wy7dLrzlkuoHmW+5RSDCdQavQg+czuQ7ATLubsQlB85uKn2rZXaFN5lG2/LgS4Yt/QMv 9KGTIq9yM4lXL5P6gZ80O7UsKYAYr/zOjJrvgiF4Pl/S/azWo9kI/KYUR5MUKT7sx+WB TOtw== X-Gm-Message-State: AE9vXwOt1vb9+pm/1afTw70KgUZj8a6kV7EXaFmD4ZqcGIyASR1X3SovjC84X2l5XGMg420y 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 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 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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 --- Documentation/power/devices.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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,