Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1944676yba; Tue, 2 Apr 2019 20:34:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWKAL3aPKMM6wGJgdeKDQoCu3SvwySXlbSGWeqKChWF8y7+q5vX2snZWTDK+d6nU2ZSeoj X-Received: by 2002:a63:87c1:: with SMTP id i184mr70369048pge.265.1554262444269; Tue, 02 Apr 2019 20:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554262444; cv=none; d=google.com; s=arc-20160816; b=nCvuzVnIyFvLuSuH5/PkzAwHL/ncgnUjF28tkNqoFdgkOPN2FnJPjbDs/U65aNrfoq 8jA3LbYfFRhwXmRKT1QLkKOI+nET7Wj5ZBsyyMx8DTEcPB09dfTjUTKnpB175dJr2TeS xfXn3mi6U456uQLgPVfus4Y19ZWM5rqZx+vc5zKKaGTuwcTczhN/fVjZtZ2OmHRN8dtF xblRDj37vYHzbZ16yAzd5Y3+qefrgBajl01YXNah9ESVKOOkElhLY9/UZPBdsW6N9CDP XkIcBKTJzsLuAsfDNa+yWjKYDsunIXpbGKP9wi5HZ6uX2mPjjyV/j/ZOVXsHI5++70cR /vfg== 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=jbb66Gq4hxOmdDo413ybTs1TFHX9luMtW2Ycj0bUqGk=; b=JnEZWCmvWgfK6oCP4HfOnHMMRmizrBQj01P3myJFQQmN9/C8i2D1+BApCFuD4q7cIE Hia5zgBxIexvx+My02DyVG8AJUhppfPcBwWphHh5S6QAhngEcstbT7kQCqOmYhmA2Emu Zntx3u2cgkKH8YwFz8RugvKVGeOf1+9Rn7bnjhhEsFQk7TvhwG+CAAX+hzKgm7xVkleH VIcnygYLrZRSS3EluCkl75n/TknJ8sEKVFSustZwzxfjGkHwYuo3Rbw5oicY+cMtf0sH KADdjxgaNDTcECWzxjPSsd4zjxRAaQsGsHotGnAwEVyYo2W8QtN2ZS6PXNg7X5LBCpza y+uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hXTUkV+M; 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 k14si13390030pgs.214.2019.04.02.20.33.49; Tue, 02 Apr 2019 20:34:04 -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=hXTUkV+M; 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 S1727659AbfDCDdA (ORCPT + 99 others); Tue, 2 Apr 2019 23:33:00 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40503 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDCDdA (ORCPT ); Tue, 2 Apr 2019 23:33:00 -0400 Received: by mail-pl1-f196.google.com with SMTP id b3so4323513plr.7 for ; Tue, 02 Apr 2019 20:33:00 -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=jbb66Gq4hxOmdDo413ybTs1TFHX9luMtW2Ycj0bUqGk=; b=hXTUkV+MQqfSMg+pre8w1bv+alE7XnEuXrIU41z2RE3j6dgyLtP8gvBZni/UDVgcQ1 aNXnWlxG/+Lz+08skF5QtIH/CkV3UPhOfDmtAJWPjpYhD0Zkv3j/XySpDUkhofeIS6Oo q+FsumoyUMJB1L/wtT0h0iyuMZjsnazqK6th9qYrtp6uC54dYLqebAcVv77TCYnpRT4M V+Jxth+PDNdxhKbVcZ0VcDq9vaYjDPhw6VJaia7tw3aC2niRNRkbG6ND9VeUIfRD/ISG ndeyU6fUy9fjxMmRP8z4KUJD3UgvX0xYa6llauLa3j9NjNXlE5glYGWqtOUg9cVLV1Mf Kgug== 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=jbb66Gq4hxOmdDo413ybTs1TFHX9luMtW2Ycj0bUqGk=; b=azYIEf7PTUOynmF0YmJdB3El0MxiHzb9flq00gewD7W19WCCRZLTMF1T5X3qVMyavI VTzE1gXox8EJHYrHiEDqIL+UXcixMsSrRz8to3VxaFofSiNnK0W5vWSRyfrZjN5j09Ke 4xC/HUH4diRw6Bnh4tRRHDrZlBvsjw6oj8nbstjkvL/OGzq6rvbejI19yawxvUsnQwp7 HWuFg1eitpUWUFwRpPufV+MY5/ZY4nglhuWl+Zp5wwGqUaF69iUbN82MawFgLCHpx2T/ mPxINfUv1M8IyyRv3EYJ+dw4L16R5QF4ojMCGHfnIvKyP2NzDK35fsbPltVA3LJE9Yhd fI+w== X-Gm-Message-State: APjAAAWmrwNjjjQR8Z2JpcFQilmKztPPjHWSraDJ0OBdmB1HnvVxjBM7 tqUBw0tXK3PcJJWax7oQSYTAgw== X-Received: by 2002:a17:902:7481:: with SMTP id h1mr33384652pll.206.1554262379491; Tue, 02 Apr 2019 20:32:59 -0700 (PDT) Received: from [10.71.14.66] ([147.50.13.10]) by smtp.googlemail.com with ESMTPSA id t82sm39923872pfa.153.2019.04.02.20.32.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 20:32:58 -0700 (PDT) Subject: Re: [PATCH 5/7] thermal/drivers/core: Remove depends on THERMAL in Kconfig To: Amit Kucheria Cc: Zhang Rui , Eduardo Valentin , Linux PM list , LKML , Andy Gross , David Brown , Stephen Rothwell , "open list:ARM/QUALCOMM SUPPORT" References: <20190402161256.11044-1-daniel.lezcano@linaro.org> <20190402161256.11044-5-daniel.lezcano@linaro.org> From: Daniel Lezcano Message-ID: <9afb2911-512a-9048-9ed8-6aa9dd29a848@linaro.org> Date: Wed, 3 Apr 2019 05:32:52 +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 Amit, On 02/04/2019 20:51, Amit Kucheria wrote: > On Tue, Apr 2, 2019 at 11:14 PM Daniel Lezcano > wrote: >> >> The dependency on the THERMAL option to be set is already there implicitly >> by the "if THERMAL" conditionnal option. The sub Kconfigs do not have to >> check against the THERMAL option as they are called from a Kconfig block >> which is enabled by the conditionnal option. >> >> Remove the useless "depends on THERMAL" in the Kconfigs. >> >> Signed-off-by: Daniel Lezcano >> --- >> drivers/thermal/Kconfig | 2 -- >> drivers/thermal/intel/Kconfig | 1 - >> drivers/thermal/qcom/Kconfig | 1 - >> 3 files changed, 4 deletions(-) >> >> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig >> index ccf5b9408d7a..d8aa7fac8c56 100644 >> --- a/drivers/thermal/Kconfig >> +++ b/drivers/thermal/Kconfig >> @@ -24,7 +24,6 @@ config THERMAL_STATISTICS >> >> config THERMAL_EMERGENCY_POWEROFF_DELAY_MS >> int "Emergency poweroff delay in milli-seconds" >> - depends on THERMAL >> default 0 >> help >> Thermal subsystem will issue a graceful shutdown when >> @@ -152,7 +151,6 @@ config CPU_THERMAL >> bool "generic cpu cooling support" >> depends on CPU_FREQ >> depends on THERMAL_OF >> - depends on THERMAL=y > > This will break the intention of afa1f2ab43d48d0e1. At the moment, we > need THERMAL=y if we want cpu_cooling. The patch 1/7 changes the thermal option from tristate to bool, so the thermal is compiled-in always. The dependency is no longer needed in this case. Did I miss something? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog