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: 9603487 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B9E160414 for ; Fri, 3 Mar 2017 20:42:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79DCB28555 for ; Fri, 3 Mar 2017 20:42:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D2952855A; Fri, 3 Mar 2017 20:42:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F44128555 for ; Fri, 3 Mar 2017 20:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbdCCUmz (ORCPT ); Fri, 3 Mar 2017 15:42:55 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:36626 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752037AbdCCUmy (ORCPT ); Fri, 3 Mar 2017 15:42:54 -0500 Received: by mail-pf0-f181.google.com with SMTP id x66so36637017pfb.3 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=kijT8UQSlnVEmXATDIgbOlzO235EA0kBKUv0TPMZ+9/q/NoIZCHsX+YzmhM1NYw/4Z AViaE8cTZ1tpA1us2W5fA5Zkdx93vvFId8COOxN1QvCe1mSvruiyzsClFnw6cOegsHlB RYGg6nDWTcrQralDAJMeN4W6tL1kzzfQDeN9onRtr4uUOwVtvSWusYJr9f9Ov6Yg8w8I oIh6c1ik6ZmVoimdcdG/DpYXNejtcHvwrzUc0cB3cA5x+tFyEGHGFHK/2Kbcl9AcCGOl nFg6pdmHsmK7Js4txsqAtddyzNaWAXRFA2UTrbO7hbmf+mvRZdj1wrPPE9XM1PtklcoD +8hQ== X-Gm-Message-State: AMke39mV1H/z6n8NtMQ4vqUo9hXRZCpo2f57VcOsvNohGkpQgQb39/A87s4izv9tPvr2diUR 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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;