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 7B17AC05027 for ; Thu, 2 Feb 2023 14:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232453AbjBBOn6 (ORCPT ); Thu, 2 Feb 2023 09:43:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbjBBOn4 (ORCPT ); Thu, 2 Feb 2023 09:43:56 -0500 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1728626E; Thu, 2 Feb 2023 06:43:55 -0800 (PST) Received: by mail-ed1-f53.google.com with SMTP id be12so2229563edb.4; Thu, 02 Feb 2023 06:43:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h0Uvs+EgprBTmQ0jVYkQK7pz/LZJDEiugwmDCmQcPKg=; b=d3+SjSDk5udxvdirVlfJh4PTiNubbg90sXvQFTo5R6QaBzmaH00x49aVzqjSwuKSuU 4V6+5Ync+362RmNXCQ6TXPuE0nL5FTUybjFnSzWjXSc9nCJXboM1Vc1ZmOog6/VhWjvD nfs7nJ5muSlPPq2wk/GgHz2IMR7zopBgacV8eBwk4FAwRBvcnKTv9L2N7pWqLGZr3uzv 4To70VgaHkLJyZ7Zh4YXreDF54hyR7FZZFYBhgO5LkqvguAmZUdJ9ff+mXbrC9ZgYVMh CzWhCdiFyGsLb1L1hwvqyCcEk3nMeXGLqGhh6tuM7LBDTL4mGQLU88xtg/retk+34896 NKEA== X-Gm-Message-State: AO0yUKUc8LXWn/pMkCKp/6yxwtJi4hoxzVLttkkIF4yIr/CRVW4MEd1M SeiBupKtCaafyi6m097mvWn5hFC5HAii5XpeH5dUFYgG X-Google-Smtp-Source: AK7set8zXcku0FdlawfFg+hMPW0Pgx+DcdQPYQmJrlkn5C8kI3sGrRL/zulzapQslpt2wsc31bgjDky7O3Pe43xtOrs= X-Received: by 2002:a05:6402:40ce:b0:490:47c3:3d71 with SMTP id z14-20020a05640240ce00b0049047c33d71mr2046481edb.31.1675349034088; Thu, 02 Feb 2023 06:43:54 -0800 (PST) MIME-Version: 1.0 References: <20230118181622.33335-1-daniel.lezcano@linaro.org> <20230118181622.33335-3-daniel.lezcano@linaro.org> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 2 Feb 2023 15:43:42 +0100 Message-ID: Subject: Re: [PATCH 3/3] thermal/drivers/intel: Use generic trip points for intel_soc_dts_iosf To: Daniel Lezcano Cc: "Rafael J. Wysocki" , srinivas.pandruvada@linux.intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rui.zhang@intel.com, Daniel Lezcano , Amit Kucheria Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 2, 2023 at 3:36 PM Daniel Lezcano wrote: > > > 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 ? I think I can do that, but I'm not sure how much time I will be able to allocate for that. Let me try though.