From patchwork Thu Aug 25 19:51:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9299773 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 29CDE60757 for ; Thu, 25 Aug 2016 19:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A4FE2939F for ; Thu, 25 Aug 2016 19:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F180293C2; Thu, 25 Aug 2016 19:55:33 +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=ham 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 95E9F2939F for ; Thu, 25 Aug 2016 19:55:32 +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 1bd0j5-0003jn-UO; Thu, 25 Aug 2016 19:54:11 +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 1bd0hQ-0002oi-8a for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2016 19:52:30 +0000 Received: by mail-pf0-x235.google.com with SMTP id y134so20651214pfg.0 for ; Thu, 25 Aug 2016 12:52:07 -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=a/SZVuF6i2+NEbe/5d65XyHePKxjpyrZorMgZvudrwUsWXgTRzRu0Y8fzxsMIRxt+o rUNkLhiRgFn8QUnBWNLeZrsDJwFILWfurV4wYlJvVbsumY9x0QDlGSNdH8xY3yw24xkd lH8YWooj/+Prru5nk65nxmHG+ae1ZKKWkI0AQ= 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=X30wz3L9qSco81lPIcpj2bnLtZo8AunFO6RSq0HKmEOnkPKFOJcuCjitt5py1462qs SEZX/3Q9E3LH6xuDfpSPKvz1gJVQfIHJgQltN9Xcx7OU+7Vv5W37/tHjzrBh3em5BDsG i+8qEUTJ+OG/jmFjG6RPHwHNxIFtEOtdxzW822MgLW4dJrOl8F3vbxR8s6Vq0vk7fyXM cRCMpcHjErs4wI9Wl31kgSqkQI0wzfugHspsMHw9PmqvXAZdHNTq3/gPk5V94LRNzQNO NP6qc6DDSQU501Qiiy5d9AuicqiP8Gg2OBwMbcJQ0ytBJ5TNTAtXAgMB4CiFZChJemjl TdfQ== X-Gm-Message-State: AE9vXwMY3598wAztFMM9hG8g9sLpHpXHolKYDzgh3OvC75j9lhOv/2NiKX73/TvKW8Bctzbd X-Received: by 10.98.41.195 with SMTP id p186mr19246780pfp.81.1472154726741; Thu, 25 Aug 2016 12:52:06 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id i62sm22783375pfg.62.2016.08.25.12.52.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 12:52:05 -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 05/16] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Thu, 25 Aug 2016 13:51:35 -0600 Message-Id: <1472154706-40119-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472154706-40119-1-git-send-email-lina.iyer@linaro.org> References: <1472154706-40119-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160825_125228_494139_A9F9ED5D 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 --- 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,