From patchwork Wed Mar 14 16:58:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 131672 Delivered-To: patches@linaro.org Received: by 10.80.210.197 with SMTP id q5csp410210edg; Wed, 14 Mar 2018 09:59:08 -0700 (PDT) X-Received: by 10.46.112.21 with SMTP id l21mr3720567ljc.45.1521046747934; Wed, 14 Mar 2018 09:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521046747; cv=none; d=google.com; s=arc-20160816; b=dRu3mS+Vqs3ixY1h0AqkUzpZ8gpp0J0E2wf7CQjMl6naPiUE8Qj+bJpccjIkUIiFXz RhHnOoSA406JxTiw0d8wXLhYNKldFOpo0qFSMzN9U/vfZbArpI89s3i1e2Gh+66Tmgk4 zza5X1NODzw3ZXwrexSvz5B4fEatR5ClxTBUHtrrrPTc/6KS2e95gyHfWzrJo01fj9pv zcfiYESGJuOmjk3zVz2BXbvrWLu4U1R4rHAMFob9p9B09YW5Oi8+aeUYl/a5kBQQ72UV 6Gn82Ik6iBlKJCwbgDI4bs30MW6yFysa3gt4N22SLpRGMH8pJXyk5ZFax/Q7SyXpsQIr ppPQ== 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=sRgwaO0IKgB9yJSI19b85yPVQXQE5lDtfI6PCW5MVn4=; b=MlfqWbypds5Za6Cw8+bPwcWAP1aSfoKXqALQuoqPjQ1yNcYH6rCWobVO7KMJ2GdSLh UnDztWg8V5TUR4b23BU1cQLz7Uvb1sDzN9mR+zy9S8GDoUBrCRcgB/RETKAEt4FwGznJ 39xXt5UBkqYPY9qp7CJjH12DPVC/m50V2vfQInGvJlRzXfZYjkG+TwpMHm76xEPWbfcL Q7fMDzW5HJ4/Hz2JPOhdxkqACd6nmnaU5MdYcDWpMl11t2n68RuZBafwpd40fb+HHB4+ pjJPwW6u91tKoDlilO63tFQg+N/PivlK7GOv9P0edruvTAu13+MkUAUpZHclYJiN7NaB G0LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gtRqEGmS; 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 j190-v6sor868698lfe.19.2018.03.14.09.59.07 for (Google Transport Security); Wed, 14 Mar 2018 09:59:07 -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=gtRqEGmS; 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=sRgwaO0IKgB9yJSI19b85yPVQXQE5lDtfI6PCW5MVn4=; b=gtRqEGmS0b0hXoDxE3Mj0RJdbC184Q1WMbciIhpC8Ck26yYP7kgEBBie50Iq2ztcEA QR2bVwJjy37fR0PCNbw+/f+wOMG7AXHXiQRrjoqSknMc0bPpCEgCbUCTT+sKUVTb8GXt EAdP3twCUSXdszKxQ1AumIxiskanfq3uGsFQQ= 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=sRgwaO0IKgB9yJSI19b85yPVQXQE5lDtfI6PCW5MVn4=; b=rlZMkvqBSZMCQaSONo4TjzQNhOschbqmbghXMLCClW/9b1doppbqi9sguj//n2I9CA oZIuK9eNZ//IVPVx72NhlnJUeDvvqWB+d8GYmiT3af7AF5R38Pi6yqKXNJvCQbIUZ/zq 4roDw2eooT2FtGdbMUfTFOoscyyDCBseeY0Q1bM/r4Fcs3IVXBX9ZXYX8ZEDriKSr8dk A2RIp37lYdoxv71GbNmBGlctpD634Ip3ePkYpany+sY4I2LwJzJ3mikkR/U5DOu21QLr mRH1+aShTNvPGHKVhNmpMXpYrft9Qx9xg6kZbHDz7d35omomhAKyEHXWL5rfofYYQ+Xw 6k0w== X-Gm-Message-State: AElRT7FOg+7fhi8zGngY+qGoSom1JGRV4m5GkRCCaJJaXl/UyIx4hHAo SkCTu58OrX0vvRxfW/tGv47xhNyA X-Google-Smtp-Source: AG47ELsaN+OYArM4e6wd9t+LSqqsc4wUWKc6zcaDjFTzEp8+vtKq1FRHwqj2Na6QWUmQQ0EtSqT+1A== X-Received: by 2002:a19:7b12:: with SMTP id w18-v6mr4094333lfc.104.1521046747682; Wed, 14 Mar 2018 09:59:07 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t24-v6sm724849lfi.30.2018.03.14.09.59.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Mar 2018 09:59:06 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , 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 v6 03/25] PM / Domains: Add generic data pointer to genpd_power_state struct Date: Wed, 14 Mar 2018 17:58:13 +0100 Message-Id: <1521046715-30683-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521046715-30683-1-git-send-email-ulf.hansson@linaro.org> References: <1521046715-30683-1-git-send-email-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.7.4 diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 04dbef9..55ad34d 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;