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: 139371 Delivered-To: patches@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1050410lji; Wed, 20 Jun 2018 10:22:41 -0700 (PDT) X-Received: by 2002:a2e:29cf:: with SMTP id p76-v6mr15789080ljp.12.1529515361226; Wed, 20 Jun 2018 10:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529515361; cv=none; d=google.com; s=arc-20160816; b=msKIDfWXc1jlwGo8OQ37f1ivEPDjjgV5JPvJ4iXNM8MDhhKCoQsGkpropAlvftlQfk nRTJlDTBvnvFOtszU3pKVBapfKvOOeI4V9oR/N6spHw+YSLtAyWSRxfh6izGz+/av+9s BAIGBlTjmffP08P4dx7DklrUQvXfWpHEKvXEj2Jhjk8Edg0HDm3Jj2IeY2eWHm3xG72n cDnT6HA9fgMO73l3isGIsFvXukpyQBTCU89Zew2OfwhwOLFozQa5R5CmHr4uxK5MVdQ6 7Mvt6CQYc7w+HR5Iiwtu0qmPmgnmZBL0bTRMbk+o+G+Fd7Kh3S6w/szwM41vvNizgVtP tIng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=nn1c8Fl1Sgoee41Cdb6s6AY42Oe4mtKXW9dEF2Qclcg=; b=VKizCE6sgXXvaHX9EHHNU1tZwPpYeBWD8U5uXI1f5TD8gGTTlB2Ryl7U0infrlCXCW z1v7j0xGYCRmH/U0gowg39RzR/LcxAQqJGgfiqyDL80rnW5bNZnrQr3UmzttTYslbB55 AG56Pto7OGYedazagFwIebssGnbC99oTkkgrYOPQquJHMIyQX/OQdjrQim3zPyPeu3tP /BOYn72WUnRHDPM3UdwChRcwuI+vq5Zqtl9O1iYPYJTkIHPi41fn6HANgw/N2cGz7oET mhofdFdw8V1I37EmaOfcgF65oA2tVzUyytmm6DmY3x88nlanTMssl2GsdphUBjUvuReU fycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fms5MZh+; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l68-v6sor480388lfe.32.2018.06.20.10.22.41 for (Google Transport Security); Wed, 20 Jun 2018 10:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fms5MZh+; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=PsdWUe9k4eRV/J9IgTVHeWiv5nFC4siEz6TfQLduJgBS7cBIi/9c74injJbgWUQKpU fPIt3mDJUKjbeNRBh5IgnmoZZNTNDCoqe2PRboR6KAX329sNAl2RMXJiY+I5egdWzE3D tLjVuBcBVaFE3c0qxo6THYTzdc1i4cm3AQmroiRYlgdI9eBsKzTDL1u7JpOFcigNMraw xo/2G2xvomn17olUlDyATl5/wev9heMjq4sN5XyzW2UW+dImF8oK4RhuGoB+QaN3LHNO MIV9muvnpf9GocGXlLziDZjIOnn7m9H2b+BcJ8dCohuD027EySStNv5YF1+jh4nMOZNG j3Qg== X-Gm-Message-State: APt69E3RrCfXN8Mhbc6sR6DCAa1xl3rLHL9NZQ9vdWlig/5t1Rl1u/NX pycJn/EqKKGWfVs4l8NHdDnEI9Vk 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) Return-Path: 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 Cc: Kevin Hilman , Lina Iyer , Lina Iyer , Ulf Hansson , Rob Herring , Daniel Lezcano , Thomas Gleixner , Vincent Guittot , Stephen Boyd , Juri Lelli , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@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> 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(+) -- 2.17.1 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;