Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2018491yba; Tue, 2 Apr 2019 22:47:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLkuT9oTptQj/qjiOyUqcgqdLTmWgCAtfzAS+gvvPPufuaVkUD22JAPrrYIh4Qebkf0cIi X-Received: by 2002:a65:62c3:: with SMTP id m3mr11208188pgv.159.1554270464808; Tue, 02 Apr 2019 22:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554270464; cv=none; d=google.com; s=arc-20160816; b=tX7Qp9E8Qrgx+NngAb9tO0Gvx881Lhc7pQjzdleenccUBZ4dv4z+9Otjl/rRut8qBG xbps5v2Itxw5Frl7rQfUdVWTi8qCFLjPzXwuZvfg1c4R1bNe6qpY+1NNA2wbGkamrxhI Prd8BS1H6hG611+Opxy9ob1YvtM6w/mL4D3oO9RagsOJxptt5D9uYwynh8H48cKqiAQQ 6lagHyWkaf+GPUi45pU22Pr0VbiuVtCgXoIgSPzMhuCzmLbWkF/Y0n5nIQzFgqGhXCMS UnapRFVPYJcGaK6E9rDKf4CqbfDgmCKf+rKxlDjo0Wc2YSHY8NRvQ84QAag/7p0RCb6J hHUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nFrxupJk5QN98j8QXG4Je1vJrfpdR68KS8rbFbTabe0=; b=WDtzgXjyXTCKwVdC7df+lsaHf/9gcp53BIv+YmZKQ9xQ4nNyAIWS/FKvx1BtAQGMG0 k8sCiS9vq3O5tFr2ozb4I3284VAXho5HRG3kmA3eJW+QXRtfy1PV8aBX2BB6Fk8MftWv QPaM3wgTc3NuqO5RnZZo0slSqD5aW+ueetf+wwcd+JB2E2tUfxAqNa93AifshDhDBjUz i4ZsN13w0arua21sI5Qy5Jf69LGnslX6FOQjSilnLS6RmerqCNjPfB+Io1hKp2P0juKd 1qfOOBiurnnjOu3lou5dYPmtZEjTi5QMhLW11IwCrJeUYe+0xwj9wrxlMBw1MJU3DNtk 57EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=TJfndTNu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 l127si13267716pfl.2.2019.04.02.22.47.29; Tue, 02 Apr 2019 22:47:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=TJfndTNu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728819AbfDCFqA (ORCPT + 99 others); Wed, 3 Apr 2019 01:46:00 -0400 Received: from mail-ua1-f66.google.com ([209.85.222.66]:35510 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728718AbfDCFqA (ORCPT ); Wed, 3 Apr 2019 01:46:00 -0400 Received: by mail-ua1-f66.google.com with SMTP id a46so89254uae.2 for ; Tue, 02 Apr 2019 22:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nFrxupJk5QN98j8QXG4Je1vJrfpdR68KS8rbFbTabe0=; b=TJfndTNugNUfYxz9RgcKXLIY6gzPVxi8mOKeOAQu5HqImmHnbdO1oNLNplklUp6NHW 6T7caTphXrSVkr/w9jPejbX6XsZurgsA9HBonZT+g1sOX5zLRtAfgPsiCGnM2huH+KKA JbjIn42xJHZoIl+SKPx6QAjnowT+3hBznTlQz/sEgkgb5x8IdtIReGeVoe4pEMOI+V/2 F8yJrvCTU9JPBRxGLUQDCouK7CBXLI/PoVA1fwM2DpMLT6ZJMZ6EEWFiJoXgnPn263to QVwHI7waIb7UhCHWZu4yxvNhFaaODNlN7TmTWEiZqKuhJdxUbuKDc8w3tg7pS8eDZ2p6 SA0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nFrxupJk5QN98j8QXG4Je1vJrfpdR68KS8rbFbTabe0=; b=Yp30EQd9xkQpwJRGaUfk9sEGWhKcxx2WG79KdyWkISgDutMMDiP/MBUI3Hf2PrYpzh eXuEEQXRER83f9Afi1iFGhxWRaOUfwXH+HiPtF5Oj0ny+RnhoKx9UnHtHEAG5hRgbydP AzqnG4u61w+id5zaT2XsB5u28/QQQidYNybrU59JqZwrPXaBo9BJVe9gYwGZncTONmM4 +N8ipnpFo1PnDHyNqEWdy8ThRn40URp+fsNizre7uZL2mbxCz/Av0+n3olYGzONj3BSd gnVHVrxco4YAXH3VgDe7EeR1O45A5E/AJG/b/n5kra1bK1ED+J8+EyGUa3WX8vP41jhv E86Q== X-Gm-Message-State: APjAAAVvKJMLwC6bVd0myFcFNher1JKNjY4H9OW2Rjx0N0ioyHc46G/5 RnfjpkZZo9xx40A7lkKmgD0xQO7NH19d3WMX/P+XyA== X-Received: by 2002:ab0:6947:: with SMTP id c7mr26293252uas.51.1554270358658; Tue, 02 Apr 2019 22:45:58 -0700 (PDT) MIME-Version: 1.0 References: <20190401032425.18647-1-daniel.lezcano@linaro.org> In-Reply-To: <20190401032425.18647-1-daniel.lezcano@linaro.org> From: Amit Kucheria Date: Wed, 3 Apr 2019 12:45:47 +0700 Message-ID: Subject: Re: [PATCH] thermal/drivers/core: Remove the module Kconfig's option To: Daniel Lezcano Cc: Zhang Rui , Eduardo Valentin , Linux PM list , LKML , 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 , "moderated list:ARM PORT" , "open list:MIPS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 1, 2019 at 10:24 AM Daniel Lezcano wrote: > > 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 Reviewed-by: Amit Kucheria > --- > 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 > > -- > 2.17.1 >