From patchwork Thu May 11 12:12:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 99633 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp698249qge; Thu, 11 May 2017 05:13:05 -0700 (PDT) X-Received: by 10.98.88.4 with SMTP id m4mr12236170pfb.41.1494504785275; Thu, 11 May 2017 05:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494504785; cv=none; d=google.com; s=arc-20160816; b=UY+W1t9K7ulsQH/ru3HTWiKaJPh8oCXF/EKIiiHEdPUe9GvYGhrhcGbCTGI6Ox3/CP gxYG7t3G9TqEWgmlQLldy7+c8EjX/nS6JITfmWHjiMQFc4DwcjhyOZhhwEdhnB/v1pkR X62q4ProY3hUAl1B3wd9RsGRdANPXkDz7sm+fj3v0c+ddEvE2NvU0+cBg1pQpAgRvjYu 2tzvFM/Iez1oyARR/avZ1ftBIUZoY5gXX+KwiJDBT5BswxrTv4C8GjmGvv9z2gCKlNgz p1nudne4zf4dhgNcYgNJtwsAw1BGSliw0RAM6uxFQjI1I0N+ytdw/hWOFbS0KOygy/ix 2eDA== 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=cvZ5Ljy+w6NuEfqz0YUgQuxCIo2dBRHcDdfbgLmvSAA=; b=HCyW5AN6y+Eeli4nzRfYJXMtzSdnnQMInwwz8uJhtz8tOJfIUD3Y85cSZspFAFfV8k B/TXpEEQW/2213OM+uKgMsfsiSs9FDf4X7IolWvXm8Fg0vmFDilBX/vqyUQDA8malgdh aiAwWi2ZYoEyTy04AN9+qE5GFrrCSQr8Z/m5tdOgtRIYhWLlRZqEmDgvoJ/wZd2endpC Tksnk4omUNxvuSK149hx/jjVgpI5rXYxZG8rwpGavNUme8oJKcOOqQTHXaLi3ZS/qQPq 9ecOaXLePB02j7DWrctvyxDyn3wHC9wU6NK3Wrwjk6x48Jv+HVPhFn+y6+VuV/QTBV1x ReDw== 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 z86si1700076pfa.249.2017.05.11.05.13.04; Thu, 11 May 2017 05:13:05 -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 S1755572AbdEKMND (ORCPT + 14 others); Thu, 11 May 2017 08:13:03 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:60616 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755137AbdEKMNC (ORCPT ); Thu, 11 May 2017 08:13:02 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lpyfn-1ddQgm1dCR-00fk3r; Thu, 11 May 2017 14:12:59 +0200 From: Arnd Bergmann To: "Rafael J. Wysocki" , Viresh Kumar Cc: Arnd Bergmann , Linus Walleij , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: dbx500: add a Kconfig symbol Date: Thu, 11 May 2017 14:12:29 +0200 Message-Id: <20170511121258.3521041-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:nH9ZIMpgIGyUAbq+WcWw825ngu3qjuRfxUJjiDjGPS4Uq/BPQu9 5wO3xuv3qEZjwM51TwLTMf3YSXEluWgpIziQdPxI7sVvRKIc4AhfpWfxmTfTxrwwZOMoN8o 0Jgcq2atDYt/J21Se9k6ra93jrCxVPnXXVlblGHIrlVHI3rp/K58goJ4vHo5wXqUNQiBJZc BOxQ/+w5Nc7GF2+MIdOyw== X-UI-Out-Filterresults: notjunk:1; V01:K0:9790UE5AlI4=:l4MXzYuTgENGh9Qhh9a2kZ +Y3YUBHi3OUP3wnShAAjYOFsNcn9UmHP3M3G/ZfG5AQ9mcv/Z7tHYsMyCNjnKjTE2RTietb5/ lNZuQUJ2/GjtrJIZWMEpD5MjEDwddEj3PXFxEKS0VntRMGy/dF7u0w5NrSyr+EzYMLM4uA0y2 TjvYQYMAgG2tcGM7yUVbNHlW1lnQoM1FXBSCA/jgmc+Ne8rZ2Xp3VQtkUSGye7/xaMi8Pua69 gr9qms4CDSpa1+DBO9/KQgWyuS+tic9mS+YUBMDhAZ2XrkpfguB6o1FuU1H7EUSrNgrmaofOn uWb/5dq5jUlU29M0shjRK+eXWtXlnCvK6KlN7S9xERXC2EwNIBthsvcWxQz5RUTGjFRic+gpx WDWfYL20Z3mC/mOE3rqMLBTooqsKYDPQol1c01qPCBRj41cMf0bxO7ACvglmh/vGpT6e9beBG aTwp0KJ5I/lUk1DQYvFoSK3hzZ4eZP4XQ8QAYMsibiuLWoTdjoLbYEtSVLheZhhepm0bZn6Es GevtLhiJX6abv/J2qjaR8uQj6hGHLjwiBUAXYAb7vEISFpcQ3myRZgIbxOeTw0gD2pqlwYsWJ HqV6Y3IM0XSIym7+BoE84LlgphkVwAIp9WyS4ucQilVVKSS6v3OI7Uh7ivzTPGhFOWyQT8A96 uSZFMRkha2MSbvPKQAOrHpnA4zVqt5rsoq2hpn8hkD1nziV/nqYG0f9TnkYb0cCSxtA8= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Moving the cooling code into the cpufreq driver caused a possible build failure when the cpu_thermal helper code is a loadable module or disabled: drivers/cpufreq/dbx500-cpufreq.o: In function `dbx500_cpufreq_ready': dbx500-cpufreq.c:(.text.dbx500_cpufreq_ready+0x4): undefined reference to `cpufreq_cooling_register' This adds the same dependency that we have in other cpufreq drivers, forcing the driver to be disabled when we can't possibly link it. Fixes: 19678ffb9fd6 ("cpufreq: dbx500: Manage cooling device from cpufreq driver") Signed-off-by: Arnd Bergmann --- drivers/cpufreq/Kconfig.arm | 9 +++++++++ drivers/cpufreq/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) -- 2.9.0 Reviewed-by: Linus Walleij diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 74ed7e9a7f27..2011fec2d6ad 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -71,6 +71,15 @@ config ARM_HIGHBANK_CPUFREQ If in doubt, say N. +config ARM_DB8500_CPUFREQ + tristate "ST-Ericsson DB8500 cpufreq" if COMPILE_TEST && !ARCH_U8500 + default ARCH_U8500 + depends on HAS_IOMEM + depends on !CPU_THERMAL || THERMAL + help + This adds the CPUFreq driver for ST-Ericsson Ux500 (DB8500) SoC + series. + config ARM_IMX6Q_CPUFREQ tristate "Freescale i.MX6 cpufreq support" depends on ARCH_MXC diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index b7e78f063c4f..ab3a42cd29ef 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -53,7 +53,7 @@ obj-$(CONFIG_ARM_DT_BL_CPUFREQ) += arm_big_little_dt.o obj-$(CONFIG_ARM_BRCMSTB_AVS_CPUFREQ) += brcmstb-avs-cpufreq.o obj-$(CONFIG_ARCH_DAVINCI) += davinci-cpufreq.o -obj-$(CONFIG_UX500_SOC_DB8500) += dbx500-cpufreq.o +obj-$(CONFIG_ARM_DB8500_CPUFREQ) += dbx500-cpufreq.o obj-$(CONFIG_ARM_EXYNOS5440_CPUFREQ) += exynos5440-cpufreq.o obj-$(CONFIG_ARM_HIGHBANK_CPUFREQ) += highbank-cpufreq.o obj-$(CONFIG_ARM_IMX6Q_CPUFREQ) += imx6q-cpufreq.o