From patchwork Mon Oct 24 22:21:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 79097 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2813281qge; Mon, 24 Oct 2016 15:21:34 -0700 (PDT) X-Received: by 10.99.159.17 with SMTP id g17mr27507237pge.149.1477347694587; Mon, 24 Oct 2016 15:21:34 -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.33; Mon, 24 Oct 2016 15:21:34 -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 S965674AbcJXWVc (ORCPT + 14 others); Mon, 24 Oct 2016 18:21:32 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33292 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965705AbcJXWV2 (ORCPT ); Mon, 24 Oct 2016 18:21:28 -0400 Received: by mail-pf0-f173.google.com with SMTP id 128so106325478pfz.0 for ; Mon, 24 Oct 2016 15:21:28 -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=rJ7cTEuzH0f3wTI9EyVChT6fGbjUbxjly890w5TeiME=; b=XRLRnHTEv9TowLI/LVNrCku8V/ttb+o2EnUf3OYIhz2719AOlh6FZsA8KAA33gM3L4 uCqXodYDx+l5qyK1f+Lpguv4w1jsXjTVCh98lOpoDBu/9lVgZM2Gx2lQZz23bvELKj6q n03D6Td4rIevcp9H5hUDGi8xR9mv2nU1ltzo8= 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=rJ7cTEuzH0f3wTI9EyVChT6fGbjUbxjly890w5TeiME=; b=adBcMB9wKBAU1C1YQZFbK/bJ2VZYfbaWFeLZLcHnI2uDbNIaMnF7GVWxDZXIrBlFqR cPdiccHNujY20i2QvG4g1tDpXfcRaHYLsJTouhFAJ4iEKZFqV5ByIqiqxLMU+u3G1A+k Vvs4cUZMyxLWrRJJk17dJLwKOH/FBVUT2lUCdUb9efdLfLCPOKdL4Hs2QzKR7XqYv0Fy 9TiBOBqA8z15kacZPLoKG+mPc3E8kbVqwZlwYrJ0c+IBsciA8PquZv5tIDolsytPw/yY l2Md2wlwusPZhojlk+RZVbHL0ifHGc2laIITCqMWU/hs0b8kQ2IHTSbb8IAornp357JV 1ysQ== X-Gm-Message-State: ABUngvehKet4uPUOpgzp2x1MBVn4turR6+36EbpsI6siXGCQdcKLeRrmeQZRL3l3aaqoJlve X-Received: by 10.99.108.130 with SMTP id h124mr27076514pgc.90.1477347687327; Mon, 24 Oct 2016 15:21:27 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 15:21:26 -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 6/9] PM / Domains: Save the fwnode in genpd_power_state Date: Mon, 24 Oct 2016 15:21:05 -0700 Message-Id: <1477347668-41901-7-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 Save the fwnode for the genpd state in the state node. PM Domain clients may use the fwnode to read in the platform specific domain state properties and associate them with the state. Signed-off-by: Lina Iyer Acked-by: Ulf Hansson --- drivers/base/power/domain.c | 1 + include/linux/pm_domain.h | 1 + 2 files changed, 2 insertions(+) -- 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/drivers/base/power/domain.c b/drivers/base/power/domain.c index 0e59f1d..f056c80 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1956,6 +1956,7 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state, genpd_state->power_on_latency_ns = 1000 * exit_latency; genpd_state->power_off_latency_ns = 1000 * entry_latency; + genpd_state->fwnode = &state_node->fwnode; return 0; } diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index b489496..6a89881 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -39,6 +39,7 @@ struct genpd_power_state { s64 power_off_latency_ns; s64 power_on_latency_ns; s64 residency_ns; + struct fwnode_handle *fwnode; }; struct generic_pm_domain {