Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5889502rwn; Mon, 12 Sep 2022 16:31:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4UWxSyOhJpiQr01/AH54jFFXUJtlL32zJmfuJRN/kQNlZ54OkcPBU3b9tpUvtxGXMyrxkg X-Received: by 2002:a05:6402:2546:b0:451:5444:8c83 with SMTP id l6-20020a056402254600b0045154448c83mr10614860edb.194.1663025460311; Mon, 12 Sep 2022 16:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663025460; cv=none; d=google.com; s=arc-20160816; b=tiZ2wqnufht8TkHqjG9hFHfgyO0X8dXPW7cWZLBBgJ273PKIQ/PK0xJaUmOhZqrxbe ZswzWU0Ra712YF7Sx54S4Ws+8EIs13PXR4l4yxpJbx09frKR8jax5ixk/4eiEpddyAHT HoS/Y0RBNgqmkXw5KoRlhwRFQfBz3QZLxJjRPkiqXJvxLI/8Km6IPH47cUABDiTmOv+p BdDVyAQtaD9C5c67mFCKhBTGepIJzDU2qebG4CTEu06gtDZnl380rJfkFsDzdUcYlYvE zCK2b41UCz1g1TMfmC8ICrqHfBLHWpHq7mgjLj3CxzYezL1eJiKucmOCHaqZgxvDwVT8 B8Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AyY1pS1gIoihV9h/TOHQQzSTghwaQhWl/8N88+vxDvY=; b=X6LuF0MSQ6upUJGts1aTk4Z0yabWRf8Lw8n8wpZD94q6lpKQ5P8BOrH+r09YsE/+zp x5NoAFcCvVQRxKIyzeFWNwd7Sn5B6VkZnPHd1qzEVvDbtiR0Jz7Sa3zLIAW3KMMPNZEl UB0Vc/vavZtriOM3IN7ZfuibwcN5X5bpNq+59xN7h7wze1/ueeU9UBl+/4YRZA4dIhlb 5qhBNTebzm/tZF9nUXRzW3dBMuNY1kLvwadfhhix1wiuKUWw0OY4YK/X74Q90VDIjl55 5Dw8pCL29sXrGQHOknK+VoQZIgoijMg8b5IT9H1f+8wroR5EyQlAnjNsNk+vcbGjFTvX AoEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WQRN/VO2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa33-20020a17090786a100b00773db9141cbsi6709766ejc.230.2022.09.12.16.30.35; Mon, 12 Sep 2022 16:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WQRN/VO2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230083AbiILWAf (ORCPT + 99 others); Mon, 12 Sep 2022 18:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbiILWAb (ORCPT ); Mon, 12 Sep 2022 18:00:31 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56A4474F8 for ; Mon, 12 Sep 2022 15:00:28 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id w8so17060830lft.12 for ; Mon, 12 Sep 2022 15:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=AyY1pS1gIoihV9h/TOHQQzSTghwaQhWl/8N88+vxDvY=; b=WQRN/VO2MUAPdhBeT6WWJnL7tyU8NFnCcS90ahHnIrwcx9G1LuvV+3Y498rgIqbKlY YmqUqekXgv1zkVD6PzVK2c9iLBNhh1Cm9Iw4EW717UaUYJaZdrP/m5Zl3gpuce0Haca+ XrHDHoCR/KqzWdeB3iPWpMh6Qx4yZliP1Ma/BiNc+WNhHjnGPFNmcUhIT+HJnX6XYo+i lgq2yF+hxPW+3cFtVjerChY2tSBAe2jv1YiTchv/6CZUDXqH1Hqnlozns1FwdbmDCDxc qfaOFpD6IModzjrzui8NlB/ktycOlhMXYXnc2oosVtkaNboE4yKK85uxa252LlFB8Ghh JL6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=AyY1pS1gIoihV9h/TOHQQzSTghwaQhWl/8N88+vxDvY=; b=wgMKBLFERlOGYgnOtTZZ+VVqLHRbqJQP2r91/l5yj7HiO7TTHxqIqj6jLW6ksZV83C z+xW1EqUTZvVnHgqeOx+L3lfu8UKUTXhaKrVmWR7vC6fQulVmMs5RQIZZ61dwwwrFfRi +JqVs4yxj+ISLP25dmlwBcNKpkCsd4ZlbQfG/72sBQYwGVL5ne/PkufVyBDmsSjhg76w LW9+3OYL/CDgtsDMv5iW+LrQRMCgCnn+2+xcQYADN3rFitzNURmxnwH1N1PrXJq37swe 7pCx3Fg4vr8QUvAyj/0dFEtbhm+pAv+2wDvp2mNkZvLnA2NX5pCULftlt3xLKkkjlGlO lTMQ== X-Gm-Message-State: ACgBeo2U6JlKzJL3DDujgdWLtFoEyYEZWYTRF9KotNgAwWKSR6c7NFak 8gRO1hd7kDcOMFFVWGEB2xHbFA== X-Received: by 2002:a05:6512:3b20:b0:498:d7bc:28af with SMTP id f32-20020a0565123b2000b00498d7bc28afmr7408563lfv.65.1663020026956; Mon, 12 Sep 2022 15:00:26 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id o25-20020ac25e39000000b00492d270db5esm1288184lfg.242.2022.09.12.15.00.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Sep 2022 15:00:26 -0700 (PDT) Message-ID: <09c3d23a-a6f1-b5ec-bff9-3636fcdfca50@linaro.org> Date: Tue, 13 Sep 2022 01:00:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH v2 1/2] thermal: Introduce CONFIG_QCOM_THERMAL in Makefile and qcom/Kconfig Content-Language: en-GB To: Bhupesh Sharma , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com, andersson@kernel.org, linux-arm-msm@vger.kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, Amit Kucheria , Thara Gopinath References: <20220912194028.3584378-1-bhupesh.sharma@linaro.org> From: Dmitry Baryshkov In-Reply-To: <20220912194028.3584378-1-bhupesh.sharma@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/09/2022 22:40, Bhupesh Sharma wrote: > Introduce CONFIG_QCOM_THERMAL to allow better control > over selection of various Qualcomm Thermal drivers > available inside qcom/ directory. > > This is a preparatory change to allow new drivers to > be added inside qcom/ directory in a more structured > fashion later-on. > > Cc: Bjorn Andersson > Cc: Daniel Lezcano > Cc: Amit Kucheria > Cc: Thara Gopinath > Signed-off-by: Bhupesh Sharma > --- > - v1 can be viewed here: https://www.spinics.net/lists/kernel/msg4510793.html > - Fixed review comments from Dmitry received in v1. > > drivers/thermal/Makefile | 2 +- > drivers/thermal/qcom/Kconfig | 12 ++++++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile > index def8e1a0399c..2506c6c8ca83 100644 > --- a/drivers/thermal/Makefile > +++ b/drivers/thermal/Makefile > @@ -52,7 +52,7 @@ obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.o > obj-y += intel/ > obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/ > obj-y += st/ > -obj-$(CONFIG_QCOM_TSENS) += qcom/ > +obj-y += qcom/ > obj-y += tegra/ > obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o > obj-$(CONFIG_MTK_THERMAL) += mtk_thermal.o > diff --git a/drivers/thermal/qcom/Kconfig b/drivers/thermal/qcom/Kconfig > index 2c7f3f9a26eb..ccfd090273c1 100644 > --- a/drivers/thermal/qcom/Kconfig > +++ b/drivers/thermal/qcom/Kconfig > @@ -1,8 +1,17 @@ > # SPDX-License-Identifier: GPL-2.0-only > + > +config QCOM_THERMAL > + tristate "Thermal drivers on Qualcomm Snapdragon series of SoCs" > + help > + Support for thermal drivers on Qualcomm Snapdragon series of SoCs. > + There are several thermal sensors available on the Qualcomm Socs > + which can be used for thermal mitigation purposes. > + > config QCOM_TSENS > tristate "Qualcomm TSENS Temperature Alarm" > depends on NVMEM_QCOM_QFPROM > depends on ARCH_QCOM || COMPILE_TEST > + select QCOM_THERMAL What's the point of QCOM_THERMAL if other drivers are `select'ing it? I'd have understood if it would be a menuconfig guarding all Qualcomm thermal drivers. > help > This enables the thermal sysfs driver for the TSENS device. It shows > up in Sysfs as a thermal zone with multiple trip points. Disabling the > @@ -15,6 +24,7 @@ config QCOM_SPMI_ADC_TM5 > depends on OF && SPMI && IIO > select REGMAP_SPMI > select QCOM_VADC_COMMON > + select QCOM_THERMAL > help > This enables the thermal driver for the ADC thermal monitoring > device. It shows up as a thermal zone with multiple trip points. > @@ -25,6 +35,7 @@ config QCOM_SPMI_TEMP_ALARM > tristate "Qualcomm SPMI PMIC Temperature Alarm" > depends on OF && SPMI && IIO > select REGMAP_SPMI > + select QCOM_THERMAL > help > This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) > PMIC devices. It shows up in sysfs as a thermal sensor with multiple > @@ -35,6 +46,7 @@ config QCOM_SPMI_TEMP_ALARM > config QCOM_LMH > tristate "Qualcomm Limits Management Hardware" > depends on ARCH_QCOM && QCOM_SCM > + select QCOM_THERMAL > help > This enables initialization of Qualcomm limits management > hardware(LMh). LMh allows for hardware-enforced mitigation for cpus based on -- With best wishes Dmitry