Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp434634ima; Wed, 6 Feb 2019 02:34:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IYWO9oD7egWefSieQzf9eyDMfxcmUOGS7UvH/ZVBdg2fJ0U1BSqIPxdBSqHqn7gL7riZf5q X-Received: by 2002:a63:101:: with SMTP id 1mr9012450pgb.152.1549449288178; Wed, 06 Feb 2019 02:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549449288; cv=none; d=google.com; s=arc-20160816; b=wXNOeCTD5Qzb1gevG5XHQyroy61gndn1Qa3v5cDu3iFWHjVb4omPDy23TWOeTfun02 NKd/uSAAlRBSgZ8ZKH/r1bCducpRM50cyYJVI1OX6IIbfVjALwRix81iYp08Ve9Wy3cU to4gKQu1LFE6+0/xX3sqboyrxWA/t5NfHGQmGJzrKGxdJEhFygEUkNyvhNTP476kCHhh gIU4YlYH5TiPQWH32RQOcA130KKYES6hI/QciaLvvIClrsaRlYtpyvdcFvujTqfx3sC4 bNFwvOdAlGZL0OkHQutKvob8ISW4eoyP20nbeANr0TnE9dCJjkOHcffRlbaxBOlfLSPW gQYQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jXVibFfxqKoRHLvUKY1+ZG3qM/bnrBc2n883WGDtUdU=; b=mtQEZjw64cl/N3aA/LH1EtYrAoSgS8H9a4TkhVtcvPthyLe+mIrY2NyWtNzML/IM6w 3zgLmmrpLVb87Yp+1XnhM27sbLZo1yQPjJgn2TZgaoAnDbAhWgHCNq6upwQLNtzjNz8F nzhFD24gL6CtiPx/OGdOXV492LiXMufFN+a5uqKPygkO6eI+eFBLPXFkw80EFe3Aikv7 bJFZKZygVfObPgNgPGBptP/gz8qZHxwnSVjcWB6g46Z8LvsOqw5NICvKXQYaNLMhboCt BO3e2j54KJ0KFXeh/anjZeEfj2aBDOVew2rFIFco0YLJb8YBZKGHboZ6pmxRyaM9P/jD h9UQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f67si5264204pgc.594.2019.02.06.02.34.33; Wed, 06 Feb 2019 02:34:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729393AbfBFKdY (ORCPT + 99 others); Wed, 6 Feb 2019 05:33:24 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:45676 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfBFKdX (ORCPT ); Wed, 6 Feb 2019 05:33:23 -0500 Received: from 79.184.254.36.ipv4.supernova.orange.pl (79.184.254.36) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.183) id 70cda8ed52eeddda; Wed, 6 Feb 2019 11:33:21 +0100 From: "Rafael J. Wysocki" To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, Daniel Lezcano , Eduardo Valentin , Matthias Brugger , Sudeep Holla , Viresh Kumar , Zhang Rui , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:CPU FREQUENCY SCALING FRAMEWORK" Subject: Re: [PATCH v5 0/9] cpufreq: Add flag to auto-register as cooling device Date: Wed, 06 Feb 2019 11:32:09 +0100 Message-ID: <2181391.oHn0C2QMFc@aspire.rjw.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, January 29, 2019 5:55:06 AM CET Amit Kucheria wrote: > Add a flag for cpufreq drivers to tell cpufreq core to auto-register > themselves as a thermal cooling device. > > There series converts over all the drivers except arm_big_little.c. > Tested on SDM845 with the qcom-cpufreq-hw driver. Only compile-tested the > others. > > Things needing fixing (but not a blocker for the series): > - Look at how to detect that we're not in IKS mode in arm_big_little's > .ready callback. > > Changes since v4: > - Added IS_ENABLED guards in cpufreq.c > - Changed flag name to CPUFREQ_IS_COOLING_DEV > - Collected various review tags > > Changes since v3: > - Got rid of wrapper function to register/unregister cooling devices. > Directly call the function in cpufreq.c > > Changes since v2: > - Get rid of #ifdef'ery and let the pointer exist in all cases > - Get rid of (!CPU_THERMAL || THERMAL) dependency in all cpufreq drivers' > Kconfig > > Changes since v1: > - Fix compilation failures with allmodconfig > - Get rid of #ifdef in cpufreq.c > - Removed miscellaneous patches and sent them separately > - Merged patches 1 and 2 from v1 > > Amit Kucheria (9): > thermal: cpu_cooling: Require thermal core to be compiled in > cpufreq: Auto-register the driver as a thermal cooling device if asked > cpufreq: qcom-hw: Register as a cpufreq cooling device > cpufreq: imx6q: Use auto-registration of thermal cooling device > cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device > cpufreq: mediatek: Use auto-registration of thermal cooling device > cpufreq: qoriq: Use auto-registration of thermal cooling device > cpufreq: scmi: Use auto-registration of thermal cooling device > cpufreq: scpi: Use auto-registration of thermal cooling device > > drivers/cpufreq/Kconfig | 3 --- > drivers/cpufreq/Kconfig.arm | 5 ----- > drivers/cpufreq/cpufreq-dt.c | 14 ++------------ > drivers/cpufreq/cpufreq.c | 13 +++++++++++++ > drivers/cpufreq/imx6q-cpufreq.c | 24 ++---------------------- > drivers/cpufreq/mediatek-cpufreq.c | 14 ++------------ > drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- > drivers/cpufreq/qoriq-cpufreq.c | 15 ++------------- > drivers/cpufreq/scmi-cpufreq.c | 14 ++------------ > drivers/cpufreq/scpi-cpufreq.c | 14 ++------------ > drivers/thermal/Kconfig | 1 + > include/linux/cpufreq.h | 9 +++++++++ > 12 files changed, 37 insertions(+), 92 deletions(-) > > I've applied the series, thanks!