Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 971CDC61DA4 for ; Thu, 2 Feb 2023 14:36:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbjBBOgp (ORCPT ); Thu, 2 Feb 2023 09:36:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232450AbjBBOgk (ORCPT ); Thu, 2 Feb 2023 09:36:40 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B26B56DFF6 for ; Thu, 2 Feb 2023 06:36:38 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id d14so1885446wrr.9 for ; Thu, 02 Feb 2023 06:36:38 -0800 (PST) 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:message-id:reply-to; bh=yHhQ8raHUNog1t1vWXT7RPad9uq4gG0GdOLVPnM+Q4I=; b=JtidDWByDdmVWVskhKz/0ROPf6l4UQyaGzM5lgbYwRKy3CFWEahMj4FFQ20zH5CZOu 3n6b/BMgY/6ki0HsZbO5oDXphr5C0zY2yEs+AgtFEqz6GfJldQ7cuZkeWpDKPxwUUH+S u56i/CgpRnMi0x0tpa83mwkc5afBp4VVGXQVLtymyywYNA5wy0DAiKHDlrk3EwOPIW21 4528Y2tFHcA/DfIf9Mp09c+mwGO1bvdXSRSgfHeOVxI5qALBa/X1FpRkTuQ99jY561dj axGIcghN5idzglobukYWCHgWKsexm7SO0Bvssh/KnhsylNuY/0//L2z8z0+yFsZ/1U4u yNFA== 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:message-id:reply-to; bh=yHhQ8raHUNog1t1vWXT7RPad9uq4gG0GdOLVPnM+Q4I=; b=M9Afbf1Ot5Kd/y+h//2c/kMehUHj+NhE+mZj8+oakLS+5PPVLfwHNrWWCnLdPyZxPF 79ZnU4nAyGM/GWqMvq3uUcXk+FEmx7GneBVgUyFrBUIVVyTKPanqcomQkqQ0F+0XUh7h 8AKkfhEqCnyDtUYX43C0uJ77aNcAZb8aXVZtL9hHF6odIg/VgSFEwPsj/+3jR3baYppQ lDwQpYb2zSt7Z+MRF2Y+9hFDLZNc7CZVskYdY2V7acoj0sC96dpo7NRJrisxCv8OEFaO J7N9jTDRlfyLqAZArYAoJgZPQDKfznZSCToTzM9GzF+G5w1PISCqYmKtftmkHlkoLQqk s2Vg== X-Gm-Message-State: AO0yUKXW3nZIc0mnotWAseLMr6EU5XS0kpbDRmpKuHpubT1T02dNhfOc 7ldogGvLiEiezqb43r9AYSn2lvlTU41M+/1K X-Google-Smtp-Source: AK7set9GOyjY7ZljPwZYanv/j6DtDNd+OPPr3gs6xrRr2zpKMLiQXNfedpf3LiHkJX/KgDzN0cZEUw== X-Received: by 2002:a05:6000:982:b0:2bf:bd43:aacc with SMTP id by2-20020a056000098200b002bfbd43aaccmr6398511wrb.55.1675348597222; Thu, 02 Feb 2023 06:36:37 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id n9-20020a5d67c9000000b00294176c2c01sm19991708wrw.86.2023.02.02.06.36.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Feb 2023 06:36:36 -0800 (PST) Message-ID: Date: Thu, 2 Feb 2023 15:36:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 3/3] thermal/drivers/intel: Use generic trip points for intel_soc_dts_iosf Content-Language: en-US To: "Rafael J. Wysocki" Cc: srinivas.pandruvada@linux.intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rui.zhang@intel.com, Daniel Lezcano , Amit Kucheria References: <20230118181622.33335-1-daniel.lezcano@linaro.org> <20230118181622.33335-3-daniel.lezcano@linaro.org> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, On 31/01/2023 20:17, Rafael J. Wysocki wrote: [ ... ] >>> Why should temp be overwritten here? >> >> You are correct. This is wrong. >> >> I think we should call get_trip_temp() before calling update_trip_temp() >> instead of passing a zero temperature parameter > > update_trip_temp() is sort of a misnomer, because it is used for > initializing a trip point for example in > intel_soc_dts_iosf_add_read_only_critical_trip() and in this > particular case get_trip_temp() need not be called before it. > > This driver seems to be in need of a cleanup. Will you take care of this cleanup ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog