From patchwork Fri Oct 7 22:37:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 77367 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp438659qge; Fri, 7 Oct 2016 15:37:30 -0700 (PDT) X-Received: by 10.98.100.2 with SMTP id y2mr31474881pfb.169.1475879850375; Fri, 07 Oct 2016 15:37:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fg1si8378304pad.209.2016.10.07.15.37.30; Fri, 07 Oct 2016 15:37:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755186AbcJGWh3 (ORCPT + 9 others); Fri, 7 Oct 2016 18:37:29 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:34843 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754890AbcJGWh1 (ORCPT ); Fri, 7 Oct 2016 18:37:27 -0400 Received: by mail-pf0-f176.google.com with SMTP id 128so10581721pfz.2 for ; Fri, 07 Oct 2016 15:37: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=RrPFhazRgwouH7gM3IO5XrxlkGpKcuhWQyg6SJkHMUk=; b=X/ENsH5AJ8WcyPUlWXcGQBtIlJzgeolb0RD0evCDNv7PGA0K0MOiCNS+bt6EsaOLAd 4AgmcmjB4QV4h29FXFabTXk2JmTDfjAEPYkx/ioU4oMMLte9954lSWyrUv5BWDiP8xj2 src7TPOcTbKSxGOp3X8WM39pKWLdfWVYGoooU= 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=RrPFhazRgwouH7gM3IO5XrxlkGpKcuhWQyg6SJkHMUk=; b=JLYAP/oIdPdtPz/Pk74xQJ1RoQREaSpokwNwJ5f0AiSxXZaXP+zfrYBDsMrI+YW9+Y gdJYkBRbUHG8CsO0LJGQ7Uthif1wsgc/GYZgUJacHMWk8ooa5X4hhdiWsPB1FeccUJTP /R3/VhPugn8vMleqFdZQGg2k9zf9qaOKDBqnQaZBuY3yStjRMNUiRQLKucDy72GOExwD 5y2La1teWKTXbChIv8ODb8jUe9kftqgtm48deE1yNZux+Yjo6g3t68R6WrJ5GF7MgQaf iBt5RXIyj6nV2Yilo7gaZIkFPFLDWxA1nDu49bwtZRyHPHXiVwlOoY8GuJ84XWKKRO2+ g4Ww== X-Gm-Message-State: AA6/9Rk8zE+NMMoF9i1qZjMc99S1T5S7KcfVK2Qcu/bV21tnQo7kCSP+W1lYvUWc65L1p4Bp X-Received: by 10.98.84.67 with SMTP id i64mr40448994pfb.105.1475879846922; Fri, 07 Oct 2016 15:37:26 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 4sm16409203pfw.90.2016.10.07.15.37.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 15:37: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 v2 8/8] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Fri, 7 Oct 2016 15:37:01 -0700 Message-Id: <1475879821-8035-9-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475879821-8035-1-git-send-email-lina.iyer@linaro.org> References: <1475879821-8035-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 Update documentation to reflect the changes made to support IRQ safe PM domains. Signed-off-by: Lina Iyer --- Documentation/power/devices.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,