From patchwork Fri Mar 3 20:41:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 94858 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp416500qgd; Fri, 3 Mar 2017 12:42:56 -0800 (PST) X-Received: by 10.98.201.212 with SMTP id l81mr5810978pfk.13.1488573776757; Fri, 03 Mar 2017 12:42:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u26si11559272pge.31.2017.03.03.12.42.56; Fri, 03 Mar 2017 12:42:56 -0800 (PST) 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=pass 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752093AbdCCUmz (ORCPT + 13 others); Fri, 3 Mar 2017 15:42:55 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33272 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbdCCUmy (ORCPT ); Fri, 3 Mar 2017 15:42:54 -0500 Received: by mail-pf0-f182.google.com with SMTP id w189so36484523pfb.0 for ; Fri, 03 Mar 2017 12:41:57 -0800 (PST) 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=qiJmaHQzS0bE0Z3khLT+haTTC5Ogp7L2zhL7C/GnKhc=; b=OhnQazm1GYnIYU0VCcxwNSH2KYd5hW/S78tu8r4B8dteS2TD7vBpRbiedCyxZnGSo9 jXhfacL+94ortwPKH94UgxZ+JojPmY/TkOClpOEnlI0wMGp6ARdJ3kX2X3y4pdGAfQ69 RxnDtvFW1Gz2Qt8GKLwAyMaQzRm1NiBbd6iKw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qiJmaHQzS0bE0Z3khLT+haTTC5Ogp7L2zhL7C/GnKhc=; b=FmQqq2xOdMUr+eUfW4nO19iQzUPJvuL0627hdaoTn/zLUQWo2cdOIOet/h6d+87SDf sf4qS5iTK6Ve8kAytXh2NPfWD93fNWJSM67u+PBDqqPnqcyHjT9OqBYOQZzogXOBqip9 +NbLHrMAJE9qyAnmzr0JHP/VK9dQzYSVIgWm9YiG2wZVt3vH60P+x7xD7s4LA1blph1d bvUhqsWnJ0SbKlep+w/Cn/OzJooULVSNjdCQZGqaA4L18fO4aOEnVBQm+bRpL6iZj6ze XpuLLNqbz6OGYZf765XX9ZMHUmjzF4FxVCznz0Hj5XK3C/BdNOPV9Q4yM8oY2w4Isd7f TdrQ== X-Gm-Message-State: AMke39lVSK0bBm1ufdnUvLXe8hbAxeqAn6v9I48SLOMj1SNrfYt+8310rjfoEILJRbGGgB0S X-Received: by 10.98.138.132 with SMTP id o4mr5703000pfk.70.1488573717135; Fri, 03 Mar 2017 12:41:57 -0800 (PST) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id o189sm25207003pga.12.2017.03.03.12.41.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Mar 2017 12:41:55 -0800 (PST) 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 V5 7/9] PM / Domains: allow platform specific data for genpd states Date: Fri, 3 Mar 2017 12:41:33 -0800 Message-Id: <1488573695-106680-8-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488573695-106680-1-git-send-email-lina.iyer@linaro.org> References: <1488573695-106680-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 Allow platforms to save a state specific parameter for the genpd state. The parameter would be used to identify the state when the platform is called to power off the domain. Signed-off-by: Lina Iyer --- include/linux/pm_domain.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 5339ed5..183995a 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -42,6 +42,7 @@ struct genpd_power_state { s64 power_on_latency_ns; s64 residency_ns; struct fwnode_handle *fwnode; + u32 param; }; struct genpd_lock_ops;