From patchwork Tue Apr 2 16:12:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 10882039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 21919139A for ; Tue, 2 Apr 2019 16:13:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0779E28712 for ; Tue, 2 Apr 2019 16:13:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEBF728740; Tue, 2 Apr 2019 16:13:48 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7991B28712 for ; Tue, 2 Apr 2019 16:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=YkLRColAvdgE2EOJ1Lw5c1bLaCsoqj78FEouSVmbkDY=; b=e4J cIwHPnkz+Vnrt+nkfn+xjTVNkodmewi9Vxd2aaMvynDHTWtlDYixqTFf6vps2tSlI/Uf0ynxa96Lc RAxK8fomvVek2cLC9BKtF4Nvp+HPAoYevRdXWFSUpZMZJiLA5gJQrmNxzi8xVjkH0uOMCqORpGdkl JWu8yHCCPMzczNSmrkpJUWo0ESF9ziNVgZmBz3zy4ZB48qbTxdyTcoPOd5iMnEhfjtWPSqeG0IFqV fDEWnBsvdROmkFyJdDeR0Ttjs7PSzQDJhw2TAeAp47F9Xti+RiViDFIxywdSLQ9odkhikUMNBWokf rEsSmL+gjDAM8i4uKqec35WPLzm1G3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBM2V-0001zB-Py; Tue, 02 Apr 2019 16:13:31 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBM2T-0001yg-54 for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 16:13:30 +0000 Received: by mail-wm1-x342.google.com with SMTP id n25so4459856wmk.4 for ; Tue, 02 Apr 2019 09:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=xKY+ceGe4SnC6doIZkUhD6Dozc5uLu/ZgR2u3m//Do4=; b=FFy/4Wm+LurbVt0OXlOunKKi3T2Cm7VPBBPp4er2zxXCSFig3++1KgZ67Lc5P4SQZx PpQ+KNac1FSpIn9HYi0FW3hO6XWvHCMwyw03VFY4295APSPJGzFRIQltm2xvzp6jC6Q4 V5pjK8XvvlJgadjNwoCFISAkobOv9L54qyBmJu5lopHqR0D067HpOjDGTgJj4HQTFtIJ UFu+wHh34k0Kimu1DvxXhD0PtA2QUbQJ7nrbmjgdk+NwFAkZAlPXBBnHPv/vAkiNyyit omL4C9rI/LByQtXK7NTPYCLs43V8XSm6V4yBxzCRcWf0oTAN8+hJnFxUjDtP8qUtTN4S 9/lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xKY+ceGe4SnC6doIZkUhD6Dozc5uLu/ZgR2u3m//Do4=; b=gf5QWyGWY4PkopYFj7rTmtOUGnGFOTmwHohRSI5acjKXWxnJkbVUfzEZDkxyslym5O wetvTeX4EfBx7lsKEsVP3q6QitNB4HsgoXbtcf5HgPhMSOhRphaCTetjoEnLyEX9uO0U 2GNs1jLWFSuotn5TB+yu6/UZTXxLtArl2c9USoSXAbpLGzzgvmWgjHntvT/AiPWGbKjq aZDNZwj825cqj9WfLdL4etmp+uw92+jLBsRWnPpw2knWc0b+rBvMH02/BhRo4KpJGx0J 7Y1+/MV6T3J+qZG3LNMv8zW6oJOhghBFp1lqkS2I1PRakp3PGWPrHvOseVz2WFjaRRxN WA1A== X-Gm-Message-State: APjAAAU4R3ApaqwnyZlafpdpT20UW/05f4APrh5B+pxk/fIOevd+XnT3 8mKyWgsyv2/G6TFj2TKUldA4Yw== X-Google-Smtp-Source: APXvYqzoObTo7zPJvBtCd59aQgny5Hx5j84Tue4t437siGlAblkQSZFM3HK85Cl0JhFmHM0F82HGMA== X-Received: by 2002:a1c:c18d:: with SMTP id r135mr4126832wmf.112.1554221606503; Tue, 02 Apr 2019 09:13:26 -0700 (PDT) Received: from mai.imgcgcw.net (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id a126sm17054999wmh.4.2019.04.02.09.13.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 09:13:25 -0700 (PDT) From: Daniel Lezcano To: rui.zhang@intel.com, edubezval@gmail.com Subject: [PATCH 1/7] thermal/drivers/core: Remove the module Kconfig's option Date: Tue, 2 Apr 2019 18:12:44 +0200 Message-Id: <20190402161256.11044-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_091329_200706_7E140292 X-CRM114-Status: GOOD ( 17.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "moderated list:ARM PORT" , Arnd Bergmann , linux-pm@vger.kernel.org, James Hogan , Robert Jarzmik , Alexey Brodkin , Russell King , Ralf Baechle , linux-kernel@vger.kernel.org, Enric Balletbo i Serra , Paul Burton , Krzysztof Kozlowski , Guenter Roeck , Andrew Morton , "open list:MIPS" , Guan Xuetao , Daniel Mack MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The module support for the thermal subsystem makes little sense: - some subsystems relying on it are not modules, thus forcing the framework to be compiled in - it is compiled in for almost every configs, the remaining ones are a few platforms where I don't see why we can not switch the thermal to 'y'. The drivers can stay in tristate. - platforms need the thermal to be ready as soon as possible at boot time in order to mitigate Usually the subsystems framework are compiled-in and the plugs are as module. Remove the module option. The removal of the module related dead code will come after this patch gets in or is acked. Signed-off-by: Daniel Lezcano Acked-by: Guenter Roeck For mini2440: Acked-by: Krzysztof Kozlowski Acked-by: Paul Burton # MIPS part Acked-by: Robert Jarzmik --- arch/arm/configs/mini2440_defconfig | 2 +- arch/arm/configs/pxa_defconfig | 2 +- arch/mips/configs/ip22_defconfig | 2 +- arch/mips/configs/ip27_defconfig | 2 +- arch/unicore32/configs/unicore32_defconfig | 2 +- drivers/thermal/Kconfig | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/configs/mini2440_defconfig b/arch/arm/configs/mini2440_defconfig index d95a8059d30b..0cf1c120c4bb 100644 --- a/arch/arm/configs/mini2440_defconfig +++ b/arch/arm/configs/mini2440_defconfig @@ -152,7 +152,7 @@ CONFIG_SPI_S3C24XX=y CONFIG_SPI_SPIDEV=y CONFIG_GPIO_SYSFS=y CONFIG_SENSORS_LM75=y -CONFIG_THERMAL=m +CONFIG_THERMAL=y CONFIG_WATCHDOG=y CONFIG_S3C2410_WATCHDOG=y CONFIG_FB=y diff --git a/arch/arm/configs/pxa_defconfig b/arch/arm/configs/pxa_defconfig index d4654755b09c..d4f9dda3a52f 100644 --- a/arch/arm/configs/pxa_defconfig +++ b/arch/arm/configs/pxa_defconfig @@ -387,7 +387,7 @@ CONFIG_SENSORS_LM75=m CONFIG_SENSORS_LM90=m CONFIG_SENSORS_LM95245=m CONFIG_SENSORS_NTC_THERMISTOR=m -CONFIG_THERMAL=m +CONFIG_THERMAL=y CONFIG_WATCHDOG=y CONFIG_XILINX_WATCHDOG=m CONFIG_SA1100_WATCHDOG=m diff --git a/arch/mips/configs/ip22_defconfig b/arch/mips/configs/ip22_defconfig index ff40fbc2f439..21a1168ae301 100644 --- a/arch/mips/configs/ip22_defconfig +++ b/arch/mips/configs/ip22_defconfig @@ -228,7 +228,7 @@ CONFIG_SERIAL_IP22_ZILOG=m # CONFIG_HW_RANDOM is not set CONFIG_RAW_DRIVER=m # CONFIG_HWMON is not set -CONFIG_THERMAL=m +CONFIG_THERMAL=y CONFIG_WATCHDOG=y CONFIG_INDYDOG=m # CONFIG_VGA_CONSOLE is not set diff --git a/arch/mips/configs/ip27_defconfig b/arch/mips/configs/ip27_defconfig index 81c47e18131b..54db5dedf776 100644 --- a/arch/mips/configs/ip27_defconfig +++ b/arch/mips/configs/ip27_defconfig @@ -271,7 +271,7 @@ CONFIG_I2C_PARPORT_LIGHT=m CONFIG_I2C_TAOS_EVM=m CONFIG_I2C_STUB=m # CONFIG_HWMON is not set -CONFIG_THERMAL=m +CONFIG_THERMAL=y CONFIG_MFD_PCF50633=m CONFIG_PCF50633_ADC=m CONFIG_PCF50633_GPIO=m diff --git a/arch/unicore32/configs/unicore32_defconfig b/arch/unicore32/configs/unicore32_defconfig index aebd01fc28e5..360cc9abcdb0 100644 --- a/arch/unicore32/configs/unicore32_defconfig +++ b/arch/unicore32/configs/unicore32_defconfig @@ -119,7 +119,7 @@ CONFIG_I2C_PUV3=y # Hardware Monitoring support #CONFIG_SENSORS_LM75=m # Generic Thermal sysfs driver -#CONFIG_THERMAL=m +#CONFIG_THERMAL=y #CONFIG_THERMAL_HWMON=y # Multimedia support diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 653aa27a25a4..ccf5b9408d7a 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -3,7 +3,7 @@ # menuconfig THERMAL - tristate "Generic Thermal sysfs driver" + bool "Generic Thermal sysfs driver" help Generic Thermal Sysfs driver offers a generic mechanism for thermal management. Usually it's made up of one or more thermal @@ -11,7 +11,7 @@ menuconfig THERMAL Each thermal zone contains its own temperature, trip points, cooling devices. All platforms with ACPI thermal support can use this driver. - If you want this support, you should say Y or M here. + If you want this support, you should say Y here. if THERMAL