Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp11607yba; Mon, 1 Apr 2019 00:20:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjAh1gpX1yu8+3GF2MBJGRqXHZZGx1Dbh7AOuFsDexmII3HVucqp25Fy0h1bdmN+t/w70l X-Received: by 2002:a63:8548:: with SMTP id u69mr58883505pgd.85.1554103236790; Mon, 01 Apr 2019 00:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554103236; cv=none; d=google.com; s=arc-20160816; b=k6dy26HtkFoxRX1tKgmWGfvLZnrTRdBCcvp+ODkPYlGaAnADI2y18tQ6xTcS4X0WFi LxWKhDPsrF+GERdGKN196KchjpPaT2iBMZyyYBSfHK66S10TR+rIF2eninC5dX+wNEyH Vysqy8BVkX/9apUf9Yss+8c1b4Ud+BEe2zRsLJbtm2surJC1erYrlJJ2ug+Xz8ovvyue W9uP764VC/tloWstcZXWyexKHnHxN7MXgzORlNfd400r8zI4QPOeV3LNNIpsFIUZDsnJ FW7DKZy136Pcw2FSr1OzQxUub5hEX+pT15PNqaGxRBo2e8KsSPp4mvp6ThBJKDKkfENS rqIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=4jGZqdJMpFmaiFHzg/9PJMHH+esyMQhlQ43/fZLDXWE=; b=L9sZEeZ5GKGE9dS9rs/X1OjNiS1lF02cymu03k3XBfkz9Jq4yWYHAbsG1bkY8JBKiV 6KZaqd4R99doPfc5/u1GMoANWfDhQis67MLioFEX2tdGx8QMDGA8Ojx6RSpPucnDLb0q euw+kGwpX1kj59Qi0f92C5ByHSufl01xiJV0Ic7joQ/1Dz1VsZTTtWH4R8/FuZYqItKq IKy1zqViY9PQ9dvrAluXEPM4yymVn4jBM1rWTN7tbfNU9HOKKmW+6AvHNeSb+XjBP0LZ vg7kQC+6cqC7/PrHU/2qAJtk7NHdRZVSb1xy781V6rcbFfiBGVx6T2KljSsMZXTz7zAc 7OFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zNS6ufP4; 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; 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 d10si8175672pla.42.2019.04.01.00.20.19; Mon, 01 Apr 2019 00:20:36 -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=@linaro.org header.s=google header.b=zNS6ufP4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731932AbfDAHS2 (ORCPT + 99 others); Mon, 1 Apr 2019 03:18:28 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39021 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731879AbfDAHS1 (ORCPT ); Mon, 1 Apr 2019 03:18:27 -0400 Received: by mail-pf1-f195.google.com with SMTP id i17so4096072pfo.6 for ; Mon, 01 Apr 2019 00:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4jGZqdJMpFmaiFHzg/9PJMHH+esyMQhlQ43/fZLDXWE=; b=zNS6ufP4NTK/EEos4lVQUUsZ/xpVuuiirIOHoXbO40kkAxiDEodDK93dwxH5W+i4dn 3Igw/jzYbgKkjJpVAxOhc8LNXAwcckXUF3T+roK6sq0n2D4t2KFMiR7KgfTD15W+jZOg K3DtYfxNNDY4OlELiw9Bh7XXn8M03+WEP06oFFVRtrqbd/GBhzyWiXFn12iL9dLQ/JMw 2oW+vkoV+F7PFpi7lUi71GFeA3uEM4UK8kmFBqL0IC7xi5ZuuP46w6YRHNOtthZw8209 1U1htW2Fb5Y3hszi+n6O+qpapenfZ5WppS9wV2pTfrPcXugro7OI/azldmubxkeO4WQF LDBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4jGZqdJMpFmaiFHzg/9PJMHH+esyMQhlQ43/fZLDXWE=; b=MGEwZIP2/UAiLHjzoHzK68cZUqrwWXPdcDBfmDO/HbyV7KwcwPcSu7w+ln9BneL3sz Ce3oFuSPH0dN+zp8Wx9nPE17xnCTf83jdYhy4TB/FS5nHcZ+cjsV5ysh3CNUu9JeBG5D CDMkUtJ+JhbgsKunQKHLZyItzx0leFloA6yeaMGANEkQUPU8ElDlOCSSWU43aSpHaslX J5IaISSZ0eQV0bZ04tCB+T9r7PX0aFFtcuk8nRWHkt5V4Ig+nnLGdvVSCVkFfyJy1kqm JFdOg0HKb2/xzZrIXQu+LbYAlNfdowBZlPMF18vES2k9+HgUgrOa252ReTmSrDqfS2Rx obxg== X-Gm-Message-State: APjAAAW6VYN1cBUxIIub1WlpCZF464Bjy7FRTazx0td13Rc/I2Z7aari iraZZPxvb7EEZ5nRBj7k2P9G7g== X-Received: by 2002:a63:5b64:: with SMTP id l36mr60466182pgm.182.1554103106788; Mon, 01 Apr 2019 00:18:26 -0700 (PDT) Received: from [10.71.14.66] ([147.50.13.10]) by smtp.googlemail.com with ESMTPSA id x16sm4472289pge.27.2019.04.01.00.18.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 00:18:26 -0700 (PDT) Subject: Re: [PATCH] thermal/drivers/core: Remove the module Kconfig's option To: Guenter Roeck Cc: rui.zhang@intel.com, edubezval@gmail.com, Linux PM list , linux-kernel , 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" References: <20190401032425.18647-1-daniel.lezcano@linaro.org> From: Daniel Lezcano Message-ID: <86b89b19-73fe-4ec9-d030-a72f191a44d1@linaro.org> Date: Mon, 1 Apr 2019 09:18:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guenter, thanks for the review. On 01/04/2019 06:10, Guenter Roeck wrote: > On Sun, Mar 31, 2019 at 8:24 PM Daniel Lezcano > wrote: >> >> The module support for the thermal subsystem does have a little sense: > > Do you mean "makes little sense" ? yep :) >> - 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 > > Sounds like a good idea. > > Acked-by: Guenter Roeck > > Many dependencies such as the following can probably be simplified or > removed after this patch has been accepted. > > depends on THERMAL=y > depends on THERMAL || THERMAL=n > depends on (HWMON && (THERMAL || !THERMAL_OF)) || !HWMON > depends on !(MLXSW_CORE=y && THERMAL=m) > depends on THERMAL || !THERMAL > depends on HWMON=y || HWMON=THERMAL > depends on THERMAL || !THERMAL_OF Absolutely. -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog