From patchwork Fri Oct 14 17:47:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9377213 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 799AB6022E for ; Fri, 14 Oct 2016 17:51:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E0E72A62F for ; Fri, 14 Oct 2016 17:51:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 624732A7BB; Fri, 14 Oct 2016 17:51:52 +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 E78882A743 for ; Fri, 14 Oct 2016 17:51:51 +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 1bv6cp-0003bY-BQ; Fri, 14 Oct 2016 17:50:31 +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 1bv6b7-0001R7-1d for linux-arm-kernel@bombadil.infradead.org; Fri, 14 Oct 2016 17:48:45 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bv6b4-0004M6-Pm for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2016 17:48:44 +0000 Received: by mail-pf0-x22b.google.com with SMTP id s8so52673069pfj.2 for ; Fri, 14 Oct 2016 10:48:20 -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=l+crD+IkVtaBToE68+JLi58sMwSO2JDHEusl76vfUwg=; b=Cv2NT4ASTY6v3XpPAwNN5BXDwRkZTPObhx/pKuUmgYbpLz+N/4cR09MNF9gPSPa6DZ IOSXulXBGwbmgA+GQNocDLqiIZWEspOvttUtl7vofJv6Vw5TLQOis6onm3GrAS5vdL0E iwHi/w+6tOceZ6KeF6rcsUDRN1eRAgm2mbfgs= 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=l+crD+IkVtaBToE68+JLi58sMwSO2JDHEusl76vfUwg=; b=UGe//zFpQ5XafJ0Klw2oJrt8G4VRwWO4/MME9QBulKS7kuwtPZfwQYwYme3IlJ3aEf KghLjRcMWH26aWtod4xclwcO2GQfiQiSxzywvowC85KrZKB2++qfG0FirO3djwlC4aky ettHHQ7NffXh12CTGocHsR1xojU+sWz+4jmPNt5ki1zJ3Emh4iIW7rrDfIRMXHEob3NM yAxrondSs1dScFieCZ1B8WkcjFcOJj8sP2hhuP9VHRAtWEth3Bj3DQa1ayPtAUPkYGSA GDv/Jy8mX2Wzp8vxWe/giB6hV4Qp86GihSpgBU3qITcgHnuq0FpbdPsM4o1OHmbhtWSK 1KuA== X-Gm-Message-State: AA6/9Rm9dG/knjhV+mQtOjzUW+r9wrtvZXH3WAjD/XJUIRI5ooamHvrlBsYtjmmUo9HQyZed X-Received: by 10.98.131.71 with SMTP id h68mr19965239pfe.166.1476467300059; Fri, 14 Oct 2016 10:48:20 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id q12sm6725466pfd.7.2016.10.14.10.48.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Oct 2016 10:48:19 -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 8/8] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Fri, 14 Oct 2016 10:47:56 -0700 Message-Id: <1476467276-75094-9-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476467276-75094-1-git-send-email-lina.iyer@linaro.org> References: <1476467276-75094-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161014_134842_938341_C3FFC2FC X-CRM114-Status: GOOD ( 12.43 ) 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 --- Documentation/power/devices.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/power/devices.txt b/Documentation/power/devices.txt index 8ba6625..0401b53 100644 --- a/Documentation/power/devices.txt +++ b/Documentation/power/devices.txt @@ -607,7 +607,14 @@ 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 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. The restriction this framework imposes on the parent domain of an +IRQ-safe domain is that it must also be defined as IRQ-safe. 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,