From patchwork Wed Jun 20 17:22:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10478205 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 6A95F60210 for ; Wed, 20 Jun 2018 17:34:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5126828F2C for ; Wed, 20 Jun 2018 17:34:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43F1E28F51; Wed, 20 Jun 2018 17:34:53 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 AA27E28F2C for ; Wed, 20 Jun 2018 17:34:52 +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=kyGhdKD1steBDXOhlk5W7oxPTkZ7XuCbrd+rXfqrypI=; b=SxHd2YMNitebjfB52E2Pc6/x5g K/eUfuk2QUu5XBKQVaBHBFt1TLjOSR7SVyESZh/rKPqCfh3bgfeSrOA7DRu3EqSDmSjgguvifMap6 eng+7zarERJrZYL0EUEemw8M5/qtUb2NKe9mYRdlvG3LpQ9lfrjIaulKa6M1wsC+FB4REtpNCl6Ca bps9E9qVfkWLk51b7D7JnS6iVP5OLE/RiLBeK7JAHqaTUxyhj8O/rf6W1lGct1w6UZmZRVk6jfSlk z11ndsZi2nNtfBnW5JrkFhUMXFnA1ts1ehzNzfIjDSvwptKtaDQpboCMOPjaW7GT22KYnr50JAuzo jo9x5v+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVh0B-0005p2-8A; Wed, 20 Jun 2018 17:34:39 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVgon-0005V5-0Q for linux-arm-kernel@lists.infradead.org; Wed, 20 Jun 2018 17:23:00 +0000 Received: by mail-lf0-x241.google.com with SMTP id i15-v6so491199lfc.2 for ; Wed, 20 Jun 2018 10:22:42 -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=nn1c8Fl1Sgoee41Cdb6s6AY42Oe4mtKXW9dEF2Qclcg=; b=Fms5MZh+Y2NcSUQLJvVveQhOzXD9FJ9G/WS/pMfGFfAUOcdghZncGQ4QUcrTfiDHjG s2YHhha23J5+08pidu3G24Vkg+/C4+xmFvoJKQbQU8oz864aHSKGBBacDTfWGElmm00o SbDwCWScWvHyM0uj4Iv4vQ5gQpncl6f+1U75I= 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=nn1c8Fl1Sgoee41Cdb6s6AY42Oe4mtKXW9dEF2Qclcg=; b=bUsKrR49vykQbu5216XlV6x85l6B46YzVUacmuUevTFCc7YqYCoJ1yssU5lsku9QL0 gg7NnASBIVME9MeAEIzuBU8xRLQNDVXbaOyPwflQsWBuUPnaKuUbBC0lffOb4Nr6X+q+ zY7av2TxrsWxannH/NiIricVve57L4dcwiaswL44ESTlg+Ft+P5PvCH8o658NNNOQr2U oHo9E/khusNozIjm5ApMwrfp7vd7mqxbEj/l3VQ6shrCWuPol3yj3chOLILpt7kWxx6F k5Idf70xrgGpJrO83K6Z6jv1yo+kDFawE5NsDTq3RW4VqUGz7zQvxf7mjlLgbaIu+SJ/ 4HTg== X-Gm-Message-State: APt69E0M05Ci9qA+peuXZrDLarUmqz1CxfbSQGufd6/HD1WDeoWvW2nj 7k0wBoJNL/HuvjHKC7Cj89J+Pw== X-Google-Smtp-Source: ADUXVKIp+MmPDN24YhDdaNyV+1Ej2navlR1CYNT8tfon9FH0v9XjFYh6yVpaxHrvw4RI+dky1S41Gg== X-Received: by 2002:a19:5943:: with SMTP id n64-v6mr13137400lfb.107.1529515361033; Wed, 20 Jun 2018 10:22:41 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id b2-v6sm514441lji.85.2018.06.20.10.22.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 10:22:40 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , linux-pm@vger.kernel.org Subject: [PATCH v8 03/26] PM / Domains: Add generic data pointer to genpd_power_state struct Date: Wed, 20 Jun 2018 19:22:03 +0200 Message-Id: <20180620172226.15012-4-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180620172226.15012-1-ulf.hansson@linaro.org> References: <20180620172226.15012-1-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180620_102253_113006_19A859D6 X-CRM114-Status: GOOD ( 13.89 ) 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: Ulf Hansson , Vincent Guittot , Juri Lelli , Geert Uytterhoeven , Kevin Hilman , Stephen Boyd , linux-arm-msm@vger.kernel.org, Daniel Lezcano , linux-kernel@vger.kernel.org, Lina Iyer , Rob Herring , linux-arm-kernel@lists.infradead.org, Thomas Gleixner , 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 From: Lina Iyer Let's add a data pointer to the genpd_power_state struct, to allow platforms to store per state specific data. Cc: Lina Iyer Signed-off-by: Lina Iyer Co-developed-by: Ulf Hansson Signed-off-by: Ulf Hansson --- 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 9206a4fef9ac..27fca748344a 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -44,6 +44,7 @@ struct genpd_power_state { s64 residency_ns; struct fwnode_handle *fwnode; ktime_t idle_time; + void *data; }; struct genpd_lock_ops;