From patchwork Mon Oct 24 22:21:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 79100 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2813318qge; Mon, 24 Oct 2016 15:21:39 -0700 (PDT) X-Received: by 10.99.159.17 with SMTP id g17mr27507746pge.149.1477347699419; Mon, 24 Oct 2016 15:21:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m65si17506435pfj.199.2016.10.24.15.21.38; Mon, 24 Oct 2016 15:21:39 -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 S965722AbcJXWVg (ORCPT + 14 others); Mon, 24 Oct 2016 18:21:36 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:34108 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965675AbcJXWVf (ORCPT ); Mon, 24 Oct 2016 18:21:35 -0400 Received: by mail-pf0-f173.google.com with SMTP id r16so105944669pfg.1 for ; Mon, 24 Oct 2016 15:21:34 -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=zSQ/j5SlwPDRjzcKED+Rxq9enanqoZyfzaYaf43KtVg=; b=N/4lYYiKGcd+y34lA5mU0+fYyElNmoNhfxrrV+fcB148vW9x6Wp5nOozE10wVFHoR0 q4nBi2D6e6UKMa+31d/rAs1Uwn3Epn/+4ELr/b+UCeoSsYbP9kOzfI3U6zDxmJPl/Xxl n/FoG3hGyjxkCD64lGC3afvc31Zp1JKabFYmQ= 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=zSQ/j5SlwPDRjzcKED+Rxq9enanqoZyfzaYaf43KtVg=; b=eeVOV8J5UlDP+sLuiCJ/MlzaSXzcl+rimyFV7DjlGHtos5X1pM76Um2hfR13eUHbtL /IG9EiXIO0ddgAfeh+BwTGNZvYFAtUuFM9IiiU41ouku2QggTQg479bpUojVbBv5gCsW bni8IyebniMK5yxqpE0XI8k2ugzBQ/hlMR8i1iVOqMkc1GZjnMI5f/rIu3DkQv1uiuYy vXPHguSx6UWT53jY6ePT3UlQv+N+MV2+OXsGbBXLrUeRnpw0BWewtlkLsAxcdyTDjpbt O/i4z4Apf+pSZ3T2B3Gq5YOprT5OmmYLebWZ5MGba2CKoQgjW3vdCKE2a4cPZrhzKHYC XdHw== X-Gm-Message-State: ABUngvcLtHH1IGGH7ErE9gL0Az4r4CrxUWviY4w89TNx/XgrunDzt+4aprO8twHiiclCrW5F X-Received: by 10.98.59.66 with SMTP id i63mr33037768pfa.124.1477347694507; Mon, 24 Oct 2016 15:21:34 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x190sm27674408pfd.20.2016.10.24.15.21.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 15:21:33 -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 9/9] PM / doc: Update device documentation for devices in IRQ safe PM domains Date: Mon, 24 Oct 2016 15:21:08 -0700 Message-Id: <1477347668-41901-10-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477347668-41901-1-git-send-email-lina.iyer@linaro.org> References: <1477347668-41901-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 Signed-off-by: Rafael J. Wysocki --- Documentation/power/devices.txt | 14 +++++++++++++- 1 file changed, 13 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..73ddea3 100644 --- a/Documentation/power/devices.txt +++ b/Documentation/power/devices.txt @@ -607,7 +607,9 @@ 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. The nested domain is referred to as the +sub-domain of the parent 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, @@ -629,6 +631,16 @@ support for power domains into subsystem-level callbacks, for example by modifying the platform bus type. Other platforms need not implement it or take it into account in any way. +Devices may be defined as IRQ-safe which indicates to the PM core that their +runtime PM callbacks may be invoked with disabled interrupts (see +Documentation/power/runtime_pm.txt for more information). If an IRQ-safe +device belongs to a PM domain, the runtime PM of the domain will be +disallowed, unless the domain itself is defined as IRQ-safe. However, it +makes sense to define a PM domain as IRQ-safe only if all the devices in it +are IRQ-safe. Moreover, if an IRQ-safe domain has a parent domain, the runtime +PM of the parent is only allowed if the parent itself is IRQ-safe too with the +additional restriction that all child domains of an IRQ-safe parent must also +be IRQ-safe. Device Low Power (suspend) States ---------------------------------