From patchwork Thu Aug 25 20:03:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 74720 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1017334qga; Thu, 25 Aug 2016 13:04:30 -0700 (PDT) X-Received: by 10.98.24.194 with SMTP id 185mr19621169pfy.52.1472155469828; Thu, 25 Aug 2016 13:04:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e69si17009977pfb.83.2016.08.25.13.04.29; Thu, 25 Aug 2016 13:04:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1751789AbcHYUEZ (ORCPT + 14 others); Thu, 25 Aug 2016 16:04:25 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:33440 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757571AbcHYUEX (ORCPT ); Thu, 25 Aug 2016 16:04:23 -0400 Received: by mail-pa0-f52.google.com with SMTP id ti13so19765043pac.0 for ; Thu, 25 Aug 2016 13:03:42 -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=CV3cJmMwTijyNXpqrns/GnPbPVyS/dnAqy8TrK7/ywenF55sxHM07+DtQQFdoNCGJC 6j6AiH08VeqZ/Q6TdhJMgHuGUog1IPgIp1FoCz7/tOKm3eJJv+Ryq/388SQanPfRSEvX kLw026lvQlTSZDtgXSaK/vwJqgLnh1pOw/o4k= 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=UzxHgTdBp56SPuq38OiVmu/fEi3W4ImgRk0LfYfANqz9NJpMa+VyuM1ohVIK8IVoqA NHwnaX7TLOKFhmEZlQtc2I8xMWVi/8LAt69YhpjpLyiFxAwHqMNRljkWzRz2vpL9Co72 2gpHaHtFDA8xyVXiJGzURdhiqmS/pTMIrSApFiHUMtPXpwalx4yFH1MrMRC2pbLN8jEO 03wMzwom0yDYn0NfofMpHEYt5SpEAI2g9HB7KpG05nPr13BwuXijs2owT4v87sLU6SGd UyipqgQuviQfj4GxUViBNulhqAprcOKfQj29gUhGBtx0El7Y4semwIv8SmYLhy+BydtK sxIA== X-Gm-Message-State: AE9vXwPJirKshSr8j4+Y6G5WICB/MUZdY1vDdMuijp6a1VTSzWqK2x7lOIgoIpNyF4H8QKon X-Received: by 10.66.218.70 with SMTP id pe6mr19868038pac.29.1472155421793; Thu, 25 Aug 2016 13:03:41 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id u1sm22841644pfu.12.2016.08.25.13.03.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 13:03:40 -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 v4 05/16] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Thu, 25 Aug 2016 14:03:14 -0600 Message-Id: <1472155405-41841-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472155405-41841-1-git-send-email-lina.iyer@linaro.org> References: <1472155405-41841-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" 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..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,