Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2936760pxk; Mon, 28 Sep 2020 04:23:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfoLpUk9C04M3SlFPTy0gnBi3+3rgpY521454vAraMrAkL+AcRgE32vmLjtgA2terzXf0Q X-Received: by 2002:a17:906:d11a:: with SMTP id b26mr1087453ejz.191.1601292182607; Mon, 28 Sep 2020 04:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601292182; cv=none; d=google.com; s=arc-20160816; b=tNuc54MpDNKXfPhvnT+TqieUZKSA2SPPZVDm3qjiwcukt8BSYeASGPBGzRLdaCEWnM jSKSkCZPVn3Vc5eQceVR02QFOqOe/VkFT3ciXZU0a8SVh0LsYQmAWtC9yytmdQODpucW gpoPxxHwZ4QNKE+uiK7rAgS3X/pYL+2h2jXPRoUNPKQeJONXhy1U8DKmEJCWeJDhcbOY RGmQ5htWYjKqSZkXAM72Twh6cVjxwbmZWL7YdsIKf/zZ8+XXKQCk2XTCKyKdPzJlCvNx ASgPV2NszYIZ2Ex6ltBKzlbRwTeDeNKLYfqh7yVqhEmWIcP+LDBJ2jr8rSy07nZmC+Yk YUTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=WGmrNVltU47hsQ2DtZURkPQvI82shboAR3TseDZfLzA=; b=ak1GNobX6IbsmC+d6Aor/5kqEunoBfRY+4IfzY4B6VubyRcKfSbO91fcKf0xd6S0Ic 6Zal3eLKCRqOjsAaA3hQmUd0W4Hqae+4bGYic7S8Ky498npPq0cvsjMyeIhmH+sm7+6O dl7JF55pvFOj6xy0i/azJCB/9FrgiA9HwZfgYnwJ6SakKp4XqscfM1QUAPz+7lE12/TB NCc+JBPzcFxTu9sJH2YL9gKrnHUBv9vQwD29iufjTiNFnv88vd8Eq25lE3iz5A5hLWu7 WlsBLw68mrim5MnY060mBStJxklpCVC8/46dcGlvjG+YHqFhHOsaFiJj2LwkKFOstmNm h8Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OvZnWePH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q16si407080ejt.139.2020.09.28.04.22.40; Mon, 28 Sep 2020 04:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OvZnWePH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726566AbgI1LVZ (ORCPT + 99 others); Mon, 28 Sep 2020 07:21:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgI1LVZ (ORCPT ); Mon, 28 Sep 2020 07:21:25 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D1AC0613D0 for ; Mon, 28 Sep 2020 04:21:24 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id r8so373027qtp.13 for ; Mon, 28 Sep 2020 04:21:24 -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=WGmrNVltU47hsQ2DtZURkPQvI82shboAR3TseDZfLzA=; b=OvZnWePH2N/uSdOvV0Jyqo9hXNBCId8vIfJ1g+gMRcBHG6abkV0ZwOWtfNtLr377Dk eqPhNMyXfkmbr6k/qi/zbaw0kw9SvCeCsxASbrBwpmlgVRkZoh8yQCvK4A3uSHUTBmuZ JkjJzAT2KnACdZtyZpkMO82UD664w8MvmwS5QLAFHR0MnWan2yTkmPS9iLPCDKgCB+bi nCpn1MvnWWIUqS9YWDN9EZ3Bruuu7f+pEupf/FeH3wasWsdvcZkoHLu+CFOQ2eC2MnKO FDzsolUiLw2uN8iuaiYhzs1sUdF3qm8E/+Gom5VK1jxZqD/aZmVdfaV7WU6R5ryYQYz/ 3jKA== 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=WGmrNVltU47hsQ2DtZURkPQvI82shboAR3TseDZfLzA=; b=FzvTiskCUvbor8kn5wbDh0yOTQOn7cTBJG9WbuIub902w6PY1xJ1CuJqyLfScxfgSw bnZeEqUnje2B63itDmlqaVYC/fd7okT0s5TVCOy9tsaamsCJx2v1EE1msBwroitmw21p M1GK0pizC685vG7R/ShE0bKAnWw9DXR852sMzDc5iBtZ26IrDkS9YhoLOF6KiLA3hMCb Srj1sxHh8dud+aXtSLPEV0XWkJCvjEKFYJ3Rf1GbIB4+/mDQByz4Zh4mFy0hreaIj9jK P5EVSPOS9RZUJ3L4CDi7htB1ctnIHeNeCoz3C+NJLFbuYd0PItAlI6tuoy64b03scVmn BiPQ== X-Gm-Message-State: AOAM533TfpMnOPMVEMLEK//VELcpAtnCy+0D05lUuXfvCUE/Ps8qEs8w 6f1IIq5ooEvOojr8ahxwMhnSPg== X-Received: by 2002:ac8:6d32:: with SMTP id r18mr998010qtu.246.1601292083949; Mon, 28 Sep 2020 04:21:23 -0700 (PDT) Received: from [192.168.1.92] (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.gmail.com with ESMTPSA id t10sm660841qkt.55.2020.09.28.04.21.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 04:21:19 -0700 (PDT) Subject: Re: [PATCH RFC 1/8] dt-bindings: thermal: Introduce monitor-falling parameter to thermal trip point binding To: Rob Herring Cc: rui.zhang@intel.com, daniel.lezcano@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, lukasz.luba@arm.com, amitk@kernel.org References: <20200917032226.820371-1-thara.gopinath@linaro.org> <20200917032226.820371-2-thara.gopinath@linaro.org> <20200923160328.GA833754@bogus> From: Thara Gopinath Message-ID: <2f923e40-8543-0827-f72f-d8c7df51e4b6@linaro.org> Date: Mon, 28 Sep 2020 07:21:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200923160328.GA833754@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks for the review. On 9/23/20 12:03 PM, Rob Herring wrote: > On Wed, Sep 16, 2020 at 11:22:19PM -0400, Thara Gopinath wrote: >> Introduce a new binding parameter to thermal trip point description >> to indicate whether the temperature level specified by the trip point >> is monitored for a rise or fall in temperature. >> >> Signed-off-by: Thara Gopinath >> --- >> .../devicetree/bindings/thermal/thermal-zones.yaml | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml >> index 3ec9cc87ec50..cc1332ad6c16 100644 >> --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml >> +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml >> @@ -161,6 +161,13 @@ patternProperties: >> The active trip type can be used to control other HW to >> help in cooling e.g. fans can be sped up or slowed down >> >> + monitor-falling: >> + description: | >> + boolean, If true, the trip point is being monitored for >> + falling temperature. If false/absent/default, the trip >> + point is being monitored for rising temperature. >> + type: boolean > > What if you wanted to monitor for both? You usually don't want to. At really low temperature trip (5 degree C or 0 degree C) you care about starting to monitor when the temperature falls below the trip. At high temp trip points, you care about starting to monitor when the temperature rises above the trip point. The thermal framework takes care of stopping the monitoring (dependent on type of monitoring, hysteresis etc.) > >> + >> required: >> - temperature >> - hysteresis >> -- >> 2.25.1 >> -- Warm Regards Thara