From patchwork Tue Mar 13 11:45:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10278281 X-Patchwork-Delegate: rjw@sisk.pl 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 6412F602C2 for ; Tue, 13 Mar 2018 11:46:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5622628EDA for ; Tue, 13 Mar 2018 11:46:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A3E828F8F; Tue, 13 Mar 2018 11:46:16 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D39EE28EDA for ; Tue, 13 Mar 2018 11:46:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932963AbeCMLqO (ORCPT ); Tue, 13 Mar 2018 07:46:14 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:38445 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932920AbeCMLqN (ORCPT ); Tue, 13 Mar 2018 07:46:13 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MZljq-1fDvUV2fBG-00LWpa; Tue, 13 Mar 2018 12:46:09 +0100 From: Arnd Bergmann To: "Rafael J. Wysocki" , Viresh Kumar Cc: Arnd Bergmann , Sudeep Holla , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] cpufreq: scpi: add thermal dependency Date: Tue, 13 Mar 2018 12:45:40 +0100 Message-Id: <20180313114607.2061209-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:LcahI0XNWHAeNx1lkW9nKKJ++liKI9dY3IbGR8H3bnRrl8xwV+8 F2NdIeAlGFKGRQULp79gatGcfUKm923DeAnJQrfXLxrfTabZcLPWA4daD7tt4/DyGzxpP6m Y44+EuJS3iRcBh1/O44MqVoPBu4AEjob4wW39ycZuODGHEy1Ai7MJd2RWaN56t3v3d0K5dz L+HLLg/dVNffWMy7wgLQg== X-UI-Out-Filterresults: notjunk:1; V01:K0:r71t+0e13gg=:n0TiwV+NcH9kc1R43zGKE8 8V6IGk7+MI29+t6BS/55eJXNWC/m5rt4mlUjoCVU2bcaXwtbkgZOk359yk3xWSFNT8Ca6uCqx dWXzG9HOix5grvt/GuQfYMo7T5Z1nRfGgPWWX5AeVcZND+q6pEDMtUz6BFzVx2SaQWcDCnzuc bxN9L+D8XuYRFSvJ8rPDjqgQv4GcSFPmibGtvK59J8td/ownSyUUHc7wAEON/9py42Dc2oPEn citPAzNVJg4gNv4g+thHHBYiFKAhh0V2je8tH5Tv7wtNMiTKcaNfNrlM54osP1ZPgCgO9erFv 6bv/iWboJgG6DC4Xe2kXBl1XY4J59wbrCKMA+MGQ7rkF+9ZVmeCalLwhsC+sCxtmZqs4fOGaV 8+QoCQYM8VOZflO4NKiJhSAtazWbg1pWfxofwUJC+fAcDAqUla4EmNdHlxLezUXizLz4cDWU1 FOW5EaVr4oqAKVWR0Za8tKMhF3Dg60Ypcb4gOHndz4ywj1aSX0JsPXFQlf0asMK7yT72IGhmz rXKJy6eKuD9KcqipnXp9Ja/YfARrgDNyGtYgeuLIjPASJ7rSQUwFGnGH8bLtln2Cp+3849PqX ZXwYymUnoezpJij1VOZSQjYpOU/Y6wDSkn4JYAUlLPRCn3tf5I1U0V11WO9Ls8fNgao4ia8yU kKnwPgEAyij2x7JNEZeEaee1yeTaURio2kWszMLFBrR0gEOC2BbfydFYSyvhAwSFAZiV/428g svYZ7ryZTDu/IMdOS6h1XHeF6JrIRp1awaQccA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A built-in scpi cpufreq driver cannot link against a modular thermal framework: drivers/cpufreq/scpi-cpufreq.o: In function `scpi_cpufreq_ready': scpi-cpufreq.c:(.text+0x4c): undefined reference to `of_cpufreq_cooling_register' drivers/cpufreq/scpi-cpufreq.o: In function `scpi_cpufreq_exit': scpi-cpufreq.c:(.text+0x9c): undefined reference to `cpufreq_cooling_unregister' This adds a Kconfig dependency that makes sure this configuration is not possible, while allowing all configurations that can work. Note that disabling CPU_THERMAL means we don't care about the THERMAL dependency. Signed-off-by: Arnd Bergmann Acked-by: Sudeep Holla Acked-by: Viresh Kumar --- drivers/cpufreq/Kconfig.arm | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 9bbb5b39d18a..d9457d1e535c 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -45,6 +45,7 @@ config ARM_DT_BL_CPUFREQ config ARM_SCPI_CPUFREQ tristate "SCPI based CPUfreq driver" depends on ARM_SCPI_PROTOCOL && COMMON_CLK_SCPI + depends on !CPU_THERMAL || THERMAL help This adds the CPUfreq driver support for ARM platforms using SCPI protocol for CPU power management.