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. From patchwork Tue Mar 13 11:45:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 131437 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp622926ljb; Tue, 13 Mar 2018 04:46:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELtFuiGO06+NqM9hSPHBYJv4fdRqJNl0rjH8g0lbABEu8B4MI2whnjj8vND0oo5m7yV+8E6C X-Received: by 10.99.159.10 with SMTP id g10mr227883pge.407.1520941590639; Tue, 13 Mar 2018 04:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520941590; cv=none; d=google.com; s=arc-20160816; b=JHYVe+2uuYRSNbs9QongeOyGkVv/6j2xgHdL65ffuiQLx1bCns40hTnUum3m2WPo8c mmOrBd4wcrKKeBo+GBqMl/OtYVcnd0e53aFwkif28sYZv5aCGOlyFFAQEKROBQpDF/pF 1uZx1kK4f8sU4wvDRjQy44nfc3RBXDjer4lOBtutkZQf9FgdNbf3wkM77e7TnNfUkqND voPVGupmGbNvzr6Wc5/zw9hp085t/dyqyW/pWj2i5jBY6NNKSx+fob7wKrE8h9Ib2mCF uskaLFs1pS0ogQa9Mut6tI3j0FPlqWnrsS8wVEHN9ZLoKsCFbi/viiP0WKr0RHLXQI5W MFSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GPkdvbEz95DuuohKBrTJCoFKTfyc+vTLFeYwsah9A9M=; b=ItWK0JtxlQ4yDEHpEm9U33a8RsNPgOnKTP1E6pe1lSqbfxMt+dvYC6ohc5eCEMbg9n +slKRKMS93LwvFPCrTjqiNA0Os+eg2uCR6LEuFxBejtYwhbTJDzdUgiPidvcU8cuoL7z 5h4C0ifl/ht3hiVISwg1wnFhytcBRqqbOrTk5GOZ/YCFU88zjqmoX907RXRx39JAU4Pu FMLGoe6Q/VfDHUQ3ZTXMi228zpEALYt7Js+ud8O27vDaVCkSbbN/bAc/ag2YDkz6orn6 ttZ+qtgtV7yOfk9cJMEtyt5Gxb1Ti2t0xgBIUvcjLzE2SCc+1n0LoHrS3n9OQOFsn9E6 18rg== 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 18si8136pfj.366.2018.03.13.04.46.30; Tue, 13 Mar 2018 04:46:30 -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 S933023AbeCMLq2 (ORCPT + 11 others); Tue, 13 Mar 2018 07:46:28 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:45499 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932892AbeCMLq2 (ORCPT ); Tue, 13 Mar 2018 07:46:28 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MGiFl-1eqzQy2ppR-00DWrx; Tue, 13 Mar 2018 12:46:21 +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 2/2] cpufreq: scmi: add thermal dependency Date: Tue, 13 Mar 2018 12:45:41 +0100 Message-Id: <20180313114607.2061209-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180313114607.2061209-1-arnd@arndb.de> References: <20180313114607.2061209-1-arnd@arndb.de> X-Provags-ID: V03:K0:Ub40RA2KrXxyns1AKvX6VG5a8JZPLwXt0AF0rWOdfBRrEwoLee5 g8z82UyREIC+m2/0qQHxTbARkdPmy95bm0uOCqr6q8D1kEFKIZyUxnR+squm8Rv86oNrqKp lnhrLv1I2gTlW0AyQabOccBEi0diJDvrNyt+/r3NsXvkxdkWVMY2uYbe9IZIv88JLElbEzh vgAJg5hhcOQDKQl3xuuQQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:hZNyBtAC1tA=:6WG+bDIezYeah+7Rt2Jp6i fzZ2XqbHzCJNcGkG7UhYZAIA7uhsGChjH2Q7+tXbs67upszKiMzvZ0rF67WnBzyW0l2qG0kLH olvxkqKNvmG2pWLACO0a/eMptzl8E0GhgOzYtNDejZrxXoMIaT15iWYFpH3f2nPTCnLzmu6BK yS2LAkvdovsyJDE3gcrQNsovT0NxGwuU6jVVGZjko5x1QNLcKM+bG0YSDHDxn8dtI1hmG8GbP 0j4bUyoIyARLjfjwL1U3HGHpvAvc0wOQQ2f6vFfu/uYMK1cCBEDV8bD3950NN0js1fMyZpbVJ pAU/J+IA8UtyaESpRllPm/t7+2T+OjYPqsJmKA9SN2Z1/+iQAcV7T5Q73z/7VYuVxKNlW1wJF ULpgqTuoKJ7Tyvbdu+4ToX4DkSXtWf2leYW9ZtW9jx9dq8LZECdZ77OgvWiv69sRe0wRhpSES ykpYkDP161KUsGIlohq33HSrtuJegOoZYOVCi+ASG3SHJJr11uBqcpza3RgNwnHkBR3QcXdP6 fxV54zpimjQf1is5tCtgssopo/k+ErKm1Kpm3wRsirSduTEWJ3t617Fk7CPQiwj2bwOVDa8lL gLZApTEJbN01724Wk+rLUw/MgH0fO3MmT7LoFYcZaL1bNgi5pni1nu7Q0uhh9seIrHYcVKKrY Gd+IhiE9TplV5iObTMjtITyuvTuVGCqSlaiCXceMJGE30fAVlrt02ExwE1d9a3iXxnHwSHZbd bv+bwKYm21UaCgIPpWKwEQfpFJlAPiylKD7vbg== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org A built-in scmi cpufreq driver cannot link against a modular thermal framework: drivers/cpufreq/scmi-cpufreq.o: In function `scmi_cpufreq_ready': scmi-cpufreq.c:(.text+0x40): undefined reference to `of_cpufreq_cooling_register' drivers/cpufreq/scmi-cpufreq.o: In function `scmi_cpufreq_exit': scmi-cpufreq.c:(.text+0x88): 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 d9457d1e535c..7f56fe5183f2 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -242,6 +242,7 @@ config ARM_SA1110_CPUFREQ config ARM_SCMI_CPUFREQ tristate "SCMI based CPUfreq driver" depends on ARM_SCMI_PROTOCOL || COMPILE_TEST + depends on !CPU_THERMAL || THERMAL select PM_OPP help This adds the CPUfreq driver support for ARM platforms using SCMI