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: 9603511 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 3962560414 for ; Fri, 3 Mar 2017 20:46:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2676028555 for ; Fri, 3 Mar 2017 20:46:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19B6128578; Fri, 3 Mar 2017 20:46:38 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9734E28555 for ; Fri, 3 Mar 2017 20:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uqLOXC0Iwi87VIQEctGgNFcL2TOi+xnm2+5DbH2irN0=; b=lXkcoKqzOrfIuhMAFPUzOLEEBw rmDs5GNzXrz1N8aoFyMqqTrQ4tBWJ+IbH5C4TX+puDKR5e4KGN3qKY/glZSnaqruE795cb6JhG6dP xAZI8dxDJFl1iiMS2jUaj0g1Q6+vJYeP3PR0RWlKnIMDLvrEng+ZzmKTq23+ezfxTZ6mgDZAQVzaB Poj8PAe9OPN5+7AbBL33MWztCwEUr7pEKtNsjlwr0mGH/+62qwJ96c0rggOD4Zer/rpIeBWMSNwHT 3Qge40dXfe2AdadtXoGv6HOsSxkQQqs+tBNOdmFYG+xZb/nidnjZd/fq+RnoMQIiJr6hGB07YzvyK p/dPoNww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cju5v-0000bY-1P; Fri, 03 Mar 2017 20:46:31 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cju1r-0004rX-6a for linux-arm-kernel@lists.infradead.org; Fri, 03 Mar 2017 20:42:21 +0000 Received: by mail-pf0-x234.google.com with SMTP id j5so36673005pfb.2 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=iG2hJvYSQE0GjNH7ir6ImBmyy9a1JRAwoB5H/Gv7R/+Niaky4CiTSPqO7xk73R4n83 vZNC/uHkbO5QV5drDgd2KaTOXhMG41kU/+LPt/ap4h0iFCL7OY1akYcaD16dtILcXuGp KomP4ye/vihAWNGb3HVR79U32M59bTT5BTmvAx7WA3mvqkvxkZ+I9U6VJypGFxbSNkCS bfrH02jND4c0tF6ygPNXgRToKPa5QkPJ+t3+PMVFk/oc2Ew0T1oHhgjn/Bh3msnz8e3Z Qseb25hXSY+eshshUQXUgTVgSz47Qqvpwbt7CqtyRC6hj0Jqb1XCfIuOaXS2WdLWp0Xv si4w== X-Gm-Message-State: AMke39lQXKi+fxIfvPmJ554E2j8ZzOm9oHWCXR2UpkUhki4XAuJX+GcCUpH3PM4hpJlaYfbF 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_124219_282333_B17DEB5C X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lorenzo.pieralisi@arm.com, Juri.Lelli@arm.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, brendan.jackman@arm.com, sudeep.holla@arm.com, andy.gross@linaro.org, Lina Iyer MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;