Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3220326imu; Mon, 28 Jan 2019 00:35:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN4bMRP5lXQdVSGQsyvsiUBrOR7F6p3VBA/9IZpqTCpW+jaaIG2cgtA1sogNZmFduFmnCUkR X-Received: by 2002:a17:902:8a91:: with SMTP id p17mr20953377plo.316.1548664539296; Mon, 28 Jan 2019 00:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548664539; cv=none; d=google.com; s=arc-20160816; b=fCPEtqKQc/z3nWhFJF3k3E+G9rIZbjguNs0S1wdBErs9VvpIGOZWaJSJOZtfKEzIkY 2n2JhtnlsgdD++bWIgIffnRIfyJj/K+KF9rhmvY2kSATozJ/9pb/Vod8XIgBKv1/0eAR fDp3Hm/j0KJPegO62uDNdti0lIk+YeTScgKGupCnJdoS0iIlxR6HSmWwmSDUoBbpplyt 7iQw2YECsz3y/8rfC39ZjhMTnET6DE2TnEAQNhmVUg2X5M/UQpXdk7NJAP26TqO14QWS n3ZoiHR7TFXZ2WjiA1ZiQyuo+muE/UFgFZGJ5VMrzX9h80ER6jNunQ7V66Ik0iosx1Ro BtBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=TMGf9RSmS6cVngD+QMX5KaapcUOQZokd+oMFA3JcxDY=; b=Xrk1+bsQ1DqmVajchsllDK0PmbELTqB8nFHm2rfCO3Xu9DyIciOlznsq2e+JxX+eNH segp0KkDynlmPrh/KktQr+JwyfDgsd9p93c5DChISKsBFYM00ZnNmY4sSyHvBtwvy4cR VLnPRZhkBSsE1gthcZL7q0nBlegVvDWYmTaac0uGlEthxdzqqXj/a9QkGASu5POQbbuE Xtb6yrwEmznIpXW2+JMKfkoURjmEt7cV+X/l4cyW9JPwLm297FPlmXL5XiLw/SgpopTn 8oT2K3CyUxdN0Jnl0M/vNvF4ku5Z71u3wmZIzeJq7dRlnXweGGlXttrSmo5AsfHR/et4 wD3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g6gIniAT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si31756412plq.336.2019.01.28.00.35.23; Mon, 28 Jan 2019 00:35:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g6gIniAT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbfA1IdE (ORCPT + 99 others); Mon, 28 Jan 2019 03:33:04 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35253 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfA1IdD (ORCPT ); Mon, 28 Jan 2019 03:33:03 -0500 Received: by mail-wm1-f67.google.com with SMTP id t200so12941620wmt.0 for ; Mon, 28 Jan 2019 00:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TMGf9RSmS6cVngD+QMX5KaapcUOQZokd+oMFA3JcxDY=; b=g6gIniATiDadeYP0NJ6Zjei0v3/WBlJweUV6YVWgEWYMp+oNnTkcv7F7/MRGKC2spb ipSgmfRnxpifxrjSyTIYJYT9hpdi+/rKts4G19Jh3F7eIIJV2VG+ofIuXA03C/tImdv5 MoA37gh0W0tq50j+I3ISkFpXrhadt00+G4GyU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TMGf9RSmS6cVngD+QMX5KaapcUOQZokd+oMFA3JcxDY=; b=UeNTTridhZ3HCgLu/tAieTUs4+XlxrHLoSMnF8GimUjFq6YYvDSusB7w2lZsxv2Zcs tgD6kGGkQJlyQ6PBTO3krtAMrIPhs2l1C0edlyLTqQt06eEHTnAUGr7DMVYlrp4+ujTv YZVmE07oj3H6Fez0l1XNjBLhnz29tx4jBKUpMAOSkMcIJm9Di009L6soFtNk5qUBwuTW Tv+sXJ/zi/CMElnNLPDIQcEkfywjH9O4f8D/02rtwrPzp11jtYsGB4MCeluiOMgM66Ob B/mBg1WpCA3GKKi2Zc/VAUG+k/60i7b7yRJIuSkNbFl/RT3JvxYiaIKkHOZKIQTZE61y DYig== X-Gm-Message-State: AJcUukdbHqh6EG855nKvkHnmJY69HDLBeYCCBQHVdUAyK73GgLazX6GI HAMLYnl3/4hljUXDCqic1+J9YA== X-Received: by 2002:a1c:488b:: with SMTP id v133mr6524469wma.31.1548664381376; Mon, 28 Jan 2019 00:33:01 -0800 (PST) Received: from [192.168.0.41] (20.36.129.77.rev.sfr.net. [77.129.36.20]) by smtp.googlemail.com with ESMTPSA id l20sm244726694wrb.93.2019.01.28.00.32.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 00:33:00 -0800 (PST) Subject: Re: [PATCH v4 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device To: Amit Kucheria , linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, viresh.kumar@linaro.org, edubezval@gmail.com, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , Taniya Das , linux-pm@vger.kernel.org References: <65d7297bbf98fd525d3785f2e8eb5a412ffd3a6b.1548654899.git.amit.kucheria@linaro.org> From: Daniel Lezcano Message-ID: <36e00871-46c5-3c55-5a47-904a2796e4d4@linaro.org> Date: Mon, 28 Jan 2019 09:32:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <65d7297bbf98fd525d3785f2e8eb5a412ffd3a6b.1548654899.git.amit.kucheria@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/01/2019 07:41, Amit Kucheria wrote: > Add the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow the cpufreq core > to auto-register the driver as a cooling device. > > Signed-off-by: Amit Kucheria > Reviewed-by: Matthias Kaehlcke > Tested-by: Matthias Kaehlcke > Reviewed-by: Stephen Boyd Reviewed-by: Daniel Lezcano > --- > drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c > index d83939a1b3d4..ed32849a3d40 100644 > --- a/drivers/cpufreq/qcom-cpufreq-hw.c > +++ b/drivers/cpufreq/qcom-cpufreq-hw.c > @@ -231,7 +231,8 @@ static struct freq_attr *qcom_cpufreq_hw_attr[] = { > > static struct cpufreq_driver cpufreq_qcom_hw_driver = { > .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK | > - CPUFREQ_HAVE_GOVERNOR_PER_POLICY, > + CPUFREQ_HAVE_GOVERNOR_PER_POLICY | > + CPUFREQ_AUTO_REGISTER_COOLING_DEV, > .verify = cpufreq_generic_frequency_table_verify, > .target_index = qcom_cpufreq_hw_target_index, > .get = qcom_cpufreq_hw_get, > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog