From patchwork Thu Aug 4 23:04:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9264569 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 187F76048B for ; Thu, 4 Aug 2016 23:09:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09612283DF for ; Thu, 4 Aug 2016 23:09:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F19F028424; Thu, 4 Aug 2016 23:09:36 +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 80623283DF for ; Thu, 4 Aug 2016 23:09:36 +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 1bVRjJ-0006Hw-CF; Thu, 04 Aug 2016 23:07:09 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVRiI-0005g4-HJ for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2016 23:06:08 +0000 Received: by mail-pf0-x22d.google.com with SMTP id p64so90903246pfb.1 for ; Thu, 04 Aug 2016 16:05:45 -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=egjOnKvPtFl5+KxlfuuR6VpVW9a96ajHwM7y7/zJhXVuksIOrf/1CY9zeSXck45m65 shkrlipcqXU9MVaNF1UhnDsEdWBB0T29QKK3E4mRCxnp79kjmK/Ngm4PVykezZQDOX/u 8KZ1dLjZ6sUOZuiGiq51G8gtgTaMgUjq/1qkM= 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=Ge4fNPV3VyyI6ThQ6JRxw4BOmzKB79SWK3S+CWVVPUa1o5RurKlaxW5TamXGzqwRc5 hWloUjwhIa9cmPXpYWl5ZP1w4IOPlax3h14glhMY6uqMkhR5DqIRxwDP35AjYmqDOw3l XYuUXM2VZ3o07PeUmYpEu68r3vUMWXTULhAJIBVhqnSS5t5FNlIUfub9Gjw7xUNRDyDl UDID6p0PuIsBcjm7mWLrPgN1DdljgI2B16vEix3NlHaXMHuQ/a/BxUV4G9cHMUivXBRp 82ZzAFYMDzCDTG2ZDloWTFTwhYla9tqwrMJhUyV8OFawTPGZVrVGIsGahePyM88LAUv3 RUyA== X-Gm-Message-State: AEkoout46nnBvrJVhx9uDiU6Tv45Zchsu2NvXCICNMalhspmRKxTcJtTJo3d9c28cAAcwN4a X-Received: by 10.98.19.214 with SMTP id 83mr132137911pft.117.1470351945524; Thu, 04 Aug 2016 16:05:45 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x66sm22736214pfb.86.2016.08.04.16.05.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 16:05:44 -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 05/15] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Thu, 4 Aug 2016 17:04:52 -0600 Message-Id: <1470351902-43103-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470351902-43103-1-git-send-email-lina.iyer@linaro.org> References: <1470351902-43103-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160804_160606_758751_2FCD903D X-CRM114-Status: GOOD ( 11.70 ) 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: andy.gross@linaro.org, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.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,