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: 161631 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1931638jan; Tue, 2 Apr 2019 09:13:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxILstBPkGnaEdcm1Z/mbSrwcxjfdeJ8YHdTWDsus3I4UA8cKriTCptthaXn+34xQT4peoz X-Received: by 2002:a63:fe0a:: with SMTP id p10mr62349243pgh.86.1554221610275; Tue, 02 Apr 2019 09:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554221610; cv=none; d=google.com; s=arc-20160816; b=x6+sjmADQuVvOSOPpswX4vev4ekUWBhq3yC1tgoMA5mpuhrwEIt59NoSgoydqKKhbl 5jMMHFWjr1N3QxZDpaAjZYNoIpGqrk20895To55X8Q9gvbWdEV/uBy3cxdIL/ZAmwD72 PM1VGcQbbJZRT+K91rH86MWV2VkDI/nFZPejWvb3H32lT+rXajM/KZ8ELQbUw1mciFwe FxAd2A0NZAOupEo0U6G01nYqS/vtT4Z0h5/Nsx9Qad0jRX7cTEJ/FFiytYVESiiNGaBj 3GpV3DfsbMpYi249zSHXYkUQ72evczqMAeTl0H+NYPlFDX4N3LbEiZLPqi7rFsjau8Jr sysQ== 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=xKY+ceGe4SnC6doIZkUhD6Dozc5uLu/ZgR2u3m//Do4=; b=H8qD3KCP4Fr9k//Iruyh0ntSU/lVhKO9nOZrxNbz1RDTvFab/LdcJWUTCKveNQ9HAK HXgstkJt/QXa7gOLK1LK6yWHB+f8dyVTF4GhxT6P21Xt8ZPGj3hE7RlohfDPdsELvemW eFAzQnFcULJkybZ3hExvB/z7Xogy/i4dIhMHNiXGVbH3/1M7qvvlEb2T2ShghrHyE0Dm sl3ooh/PvI1hdku07Y42w0VPYSzIBItXMT+AG8vsN7476h2qksIL1/X3AWAJ0SBFCqHv WrP+IB9LAM8Vf5UpEkn7/K+D2T7HSLxbrYaarJ7EuA6RCIzB7UByYAXfQjc7wKFZfjyq jZNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FFy/4Wm+"; 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 q18si8871939pls.319.2019.04.02.09.13.29; Tue, 02 Apr 2019 09:13: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; dkim=pass header.i=@linaro.org header.s=google header.b="FFy/4Wm+"; 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 S1729218AbfDBQN3 (ORCPT + 11 others); Tue, 2 Apr 2019 12:13:29 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35292 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728741AbfDBQN2 (ORCPT ); Tue, 2 Apr 2019 12:13:28 -0400 Received: by mail-wm1-f65.google.com with SMTP id y197so4484811wmd.0 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=g7thImjY5fLhltJbmzTAWFfkafd1e14v+bcwSgnEHMJ6Dk7g8oEl1h5VAy6uNE+www oKhriWIIot98Ch82EMU8+D37erxjgIMQwmyHoYWRmpqwAXSp1/oYufYiZ3/zYW5WWLpJ bErqCpOZVvWOqVzGE0jswtlOM4L8XvO1SdvIDrjUWzoHT8CSLYEoNXXKARb+y8phCGjC U0POuipEMsYRI8PXu1RHMtgiOtTOcNrSiHlFTFn971MKe62K555UVae3bM3T9QgJoSjf JnjAsqqbFgenfKEvFpTql2uU+HUeERBHHmTefk4akZoKpOs7laA0YHFo9K+1Nk88mHQW cV0Q== X-Gm-Message-State: APjAAAXI8k/m79wD6lxauxpTvdRQHEVTCCcXIt4x+M2C3zrH2Nlnq2NR v7D4Salr8Hh5D5fYVAYQRPHq7w== 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 Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck , Krzysztof Kozlowski , Russell King , Ralf Baechle , Paul Burton , James Hogan , Guan Xuetao , Andrew Morton , Alexey Brodkin , Robert Jarzmik , Arnd Bergmann , Enric Balletbo i Serra , Daniel Mack , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-mips@vger.kernel.org (open list:MIPS) 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 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 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 --- 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: Paul Burton # MIPS part Acked-by: Robert Jarzmik 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