From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DE7FC43381 for ; Mon, 1 Apr 2019 03:24:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D3532086C for ; Mon, 1 Apr 2019 03:24:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I2rNXwRs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dVR7Djlq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D3532086C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=Tq+sMOpupzRYnoSVsi1YAG+Heh3EZt/UvohpGY+csdI=; b=I2r NXwRs05nonck3EWWp8MP31Olvv5wn9A+/RWhMZQh8eq7iU05EwhA8rKMiHRqYhSxghBkuVbMbZBk/ 9rr9WT3d5aJ5PMGIDQz7+9Sfgngnlal2JV5lgWuYb5W2hrhBQLgqBzt7RRlsyqVcLcJ4uYr9t7wL/ F0HhGOEBAWFjOQ2Bd5+zSJuRmshMOodTtJg8W6y6Dvs6yq47Af4zT4tc1dzzcc5N2c7PkW92iDhcw OtMSnMtP6bRA583viFK2pVLde0d/msuOGOuE51XWDY7yiOOqiVrAYbUmdEGsyfG5fz6ILm/rTMrLk T6xMiiFaWVDwh0tky77N7F3jN+ByMWA==; 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 1hAnYu-0003QF-DW; Mon, 01 Apr 2019 03:24:40 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAnYr-0003Pc-EP for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 03:24:38 +0000 Received: by mail-pf1-x441.google.com with SMTP id z5so2790619pfn.3 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=KuXSqxHoksnNl5WFET8/Q3wX1az9SER8Hjl2oMflyHhHYGtOve4EhCwLOTNg+b3/PN KJ7wU2nEdVMs9i/Nm67SnIgxNOQ8jqJeO0sS33uV48XP9H09g4MXaVeECpjCnfrBOlpP 9EiN7SSWZbfgpW/DsVglOwmYejc9ggAOnozZfJekxVKfFHNOQqfERSjm2GLAUf1Kwisp qGiUUDjOuH4xJaj+bNoBZB3zNVfOHIPo+p9L2BELhf+LfPptzOXcxqKb4ZoLX6F4+Ynp 5H9TfyztIMdqzHrmFJk9NruHx4IgEJNNdadcxjCIvH3gYIpnhFXXlfQygG3w9uXvFiCz xGwA== X-Gm-Message-State: APjAAAUPVa0v0ZhuzkWyFO7A0R0bt9HcS5KA2XCg1HFZ+xCyJjy/ImE0 l+mE+J7EvZwh7g06z5LQ4Z0aTA== X-Google-Smtp-Source: APXvYqyYlBUL5z+GLklnCgaBk3mP6hpdoYeVVhizXnZNfvVsFVEc5/KBbLoL7t1LP7g6PswO2gyqlg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190331_202437_518806_75407980 X-CRM114-Status: GOOD ( 17.75 ) 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel