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: 131436 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp622715ljb; Tue, 13 Mar 2018 04:46:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELuVuGO3BWcICvOVyelheUwWJo7fFdmiQ5vOLNN/cyySzJntkiR5LwdbLkCXSW6Do3yWzHqn X-Received: by 10.99.113.25 with SMTP id m25mr272222pgc.164.1520941576224; Tue, 13 Mar 2018 04:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520941576; cv=none; d=google.com; s=arc-20160816; b=JzF9TzJsyeYrHq+A0ZciPsUIz+zQAstkssnvYcTAWxO6T3vAjEW3uWDxIYKQJOx65Y ABsJaKlIT9/4jbLB7312W+uad78BZTFvEHrjwvWgeBWEpMj+HZVT34f40f7XJ1o07KrZ yP0JmVTj2Md/cFQ7iLp2TqLPg58THFgD85PoQ7kmn9eYg5fsqMxohwP8qD3oErsqfEzr MG6a+D4EeZ6gOZNIJeFNveybyOjK7s4N82O0TGc92ngCPLhSSHfNlPZgGN7s6ADyF1MW /oDRqYdZoOIbbmMl9qQ4jyMGL1VkNRBy8rfCZ6ODHusRDUMcCx3aA/wohGCi8t5FGSiG YWwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wmr4Ne8ZXEU8OYYI6hXD8ehEEfAqOU5CwagOShjtMuk=; b=br9nokIdHQ7BUm74PCcWrhoE8d1dGGkHKeAtPDHlscILtxPZP/PuLy8c/sfZtIm/vN vH3t4C0PDRbna2He5WirlJtcSTn/JR7nxuFGX52p9zHPtVj3PT5KyS4GivUdOwSGGUmq EHGPSdFPe83Q+dMi2SSxWr4hs537XBTDy0SloTa2Xy9YT6X+f6PgDXEli3QzbXorHAKc upD+tS1sJK3Nd1gl31NJnoukYVJoS8hHi4cOyp6UdGxg7s9LVj8AmY52WpE7HUswFuNd u+C4wyNpzkNIWj5g5D8LpWaCaxWTl0T5vJFqOrlYsb+nN49lAx+S1vxn90St4qSBuj89 SDEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 a2-v6si9322plp.544.2018.03.13.04.46.15; Tue, 13 Mar 2018 04:46:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932963AbeCMLqO (ORCPT + 11 others); 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-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QccA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- drivers/cpufreq/Kconfig.arm | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Acked-by: Sudeep Holla 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.