From patchwork Mon Apr 1 03:24:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 161509 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4872631jan; Sun, 31 Mar 2019 20:24:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzr/YJvl6DyhEklN82ygq2ib637hDEaNiEnOAsVjfx7KokvHKW5L8Q7CIxFOhKxCLiEgq+0 X-Received: by 2002:a63:ce45:: with SMTP id r5mr7023675pgi.330.1554089078589; Sun, 31 Mar 2019 20:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554089078; cv=none; d=google.com; s=arc-20160816; b=nytrDY39iSzD5CyGS9Xi0ToyAYt5ADyXAWXCPjprW00vVYaro/doXZduGckYXADALx YPSokCvGiogfd17AiaHUWILS2L+bjvXCebb654DY+L8m4TJQTN+7GKtOhQVe638GIax1 SpJ8ORxrLEPqwAm4+PCVKC4K+LUStkdXz0Y8ooDaTFM1UyfQyEShpVwZtuk53b9hfVUf wQGc6alybTMuF7ForWkORSEkzpVhCTLcfRmOC8P09ymOXPPyFU9OmTrcIhX0Z/M0q4Je 1/MjYgJjR8GeTgdn+wu0/wVooJUvBICDxRclmINjtWvOSsOeB+eA4xvWdB7wIMxweQQY AAVw== 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 :dkim-signature; bh=hwwaEVKECJwjOTE1hnV29hek6M9PCrzEolVP/wwefUY=; b=QHN80B4Pes5riH6MYF34zUQkAGt/YTDI1UiHZXXXfkM+2U1LMTGd441BLtYVfWPhkH YGjQGdu+IpfIeMEO56nCFTDbunwCDZsX4YC2SNTeC9TiKflzwOukJAiWJUC+r0y4EVox Imxy3y70KkjHYfOAQVWy1jE8Kcdfwrfm3fDKJvuZvgJ4Rk0lr3dvtRvWREodeNaNqlRP 2Kgd0+ADWLPFcD9B5TMzuOdbY/9s0WwNkLSmIFPAfw9bEWRVjEtTioCwNtpQogJ8TvYZ 4qaYEIDxOfYgNq81K+RzCySeuZmIGvYEHx6qFoalfZ1TbJEy6yBQwbjp8LxcXitFNbhE S2Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dVR7Djlq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si236294plo.220.2019.03.31.20.24.38; Sun, 31 Mar 2019 20:24:38 -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; dkim=pass header.i=@linaro.org header.s=google header.b=dVR7Djlq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731685AbfDADYh (ORCPT + 11 others); Sun, 31 Mar 2019 23:24:37 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34524 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731686AbfDADYh (ORCPT ); Sun, 31 Mar 2019 23:24:37 -0400 Received: by mail-pf1-f193.google.com with SMTP id b3so3821373pfd.1 for ; Sun, 31 Mar 2019 20:24:36 -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=hwwaEVKECJwjOTE1hnV29hek6M9PCrzEolVP/wwefUY=; b=dVR7Djlqzy5wKbwuoBbRQQAW7rhX4EadJRGwTYRVzHLON6Heet4U2vZz7YvCU8ITpU coVhxTNb4+83/ZqVJ8IPbtm41SZLIZssJ74CMRt9/d5zV/k016ZXMcp/AsooqDIMSUFl J4FSNCY+EcdbGsED13XkpH9oI7bD1BK+ru8XDED9CGd141gA+JhBSyYoHc17yKABKbs+ ZqCLZpV+TuDvx+w0KgGa1U6m2QdjuaLFjQVcgjBlZE48rs9ShUHrKAgaxyKpi0acYz48 UvgsXVBIIcYBBoF/iGvvPotGU+IOgrVXWH8dCFjLkApiv4i1EUZ1FrDhCSO1CM4YEPAK GgDg== 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=hwwaEVKECJwjOTE1hnV29hek6M9PCrzEolVP/wwefUY=; b=S/ViBP5KM5An1HJO77oxDAtugzEpyzLIf9anCZyGQJc6+ad0BjdsDA4kzKbgMIXNVo sKo9cmcL9q8RaajyphIIlHvvxJHCrEyeMvgMeE8pL+OdgWXQELJ26SUqiY7xi1RC4y+5 p2A4uqtnC0qiO0GoI7+ljhz/EO30AU3fPXI9I708VlqsBXfi21VaMzjLClFk3WF7GEEM lXGAk7di6aDW+LH4ux5s3+3m4WYA4IQbaRjH22oETvM44gjAmhrqFx0U2XWTG1xSWYb0 BaVrHnQVEYOBb7L6oeh+MxbYI5sC6IaJksBwlNwvUlZOx8tvzx+5y/QoTcQL7OCgJ981 mpDg== X-Gm-Message-State: APjAAAV/tRub7gdcOpdPbVDRtW0Iw2W/fEBksoZBT7pRZ3vZBFiG/QGi MAWWviWBO+QismdM+ENu8u1enw== X-Received: by 2002:a65:6144:: with SMTP id o4mr21263129pgv.247.1554089075897; Sun, 31 Mar 2019 20:24:35 -0700 (PDT) Received: from mai.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id j14sm14124888pfe.12.2019.03.31.20.24.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Mar 2019 20:24:34 -0700 (PDT) From: Daniel Lezcano To: rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Ralf Baechle , Paul Burton , James Hogan , Guan Xuetao , Alexey Brodkin , Andrew Morton , Robert Jarzmik , Guenter Roeck , Krzysztof Kozlowski , Daniel Mack , Enric Balletbo i Serra , Arnd Bergmann , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCH] thermal/drivers/core: Remove the module Kconfig's option Date: Mon, 1 Apr 2019 05:24:20 +0200 Message-Id: <20190401032425.18647-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The module support for the thermal subsystem does have a 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 --- 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(-) -- 2.17.1 Acked-by: Guenter Roeck Acked-by: Krzysztof Kozlowski Reviewed-by: Amit Kucheria 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