Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754015AbdIHN7M (ORCPT ); Fri, 8 Sep 2017 09:59:12 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:33327 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750966AbdIHN7K (ORCPT ); Fri, 8 Sep 2017 09:59:10 -0400 X-Google-Smtp-Source: ADKCNb7iRfMTXNPjnFRYC0B6oIwz7P45EaC2e11cXi0bzmvC78COgIWz5xE6DYCTI0yC2xTC9k75bQ== Subject: Re: [PATCH V2] thermal/drivers/step_wise: Fix temperature regulation misbehavior To: Keerthy , rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org, leo.yan@linaro.org References: <20170908030513.GC2755@localhost.localdomain> <1504861502-4093-1-git-send-email-daniel.lezcano@linaro.org> <2ed0c54f-4e86-308e-92c8-19b8a852286d@ti.com> <620ae07f-fd37-d97b-ad0c-5d11a3022084@linaro.org> From: Daniel Lezcano Message-ID: <535fbdfe-6e6b-84b1-90b8-592aed46c6b2@linaro.org> Date: Fri, 8 Sep 2017 15:59:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 37 On 08/09/2017 14:25, Keerthy wrote: > [ ... ] > This definitely is an issue i have seen on dra7 and if step_wise by > design can accommodate this change, It will fix the issue! Ah, ok. I understood you thought we should not do the change and use the DT crit trip instead. > Then you should be updating the documentation as well. > > /* > * If the temperature is higher than a trip point, > * a. if the trend is THERMAL_TREND_RAISING, use higher cooling > * state for this trip point > * b. if the trend is THERMAL_TREND_DROPPING, use lower cooling > * state for this trip point > > Now with your patch applied the point b. will change to: > > b. if the trend is THERMAL_TREND_DROPPING, Maintain the same cooling > level till the temperature drops below trip point. Ok, I will change accordingly. Thanks. -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog