Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp60115rwo; Tue, 1 Aug 2023 12:56:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlF9U0ZESzOafpEhne2LLYwASJFH4E4KEbpplC4ttmBa7J1Ycpjv+1yOJcoy5syppG9Ii7zk X-Received: by 2002:a05:6808:209c:b0:3a7:45e0:c0e8 with SMTP id s28-20020a056808209c00b003a745e0c0e8mr5206194oiw.53.1690919768562; Tue, 01 Aug 2023 12:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690919768; cv=none; d=google.com; s=arc-20160816; b=RcdE/fW2ZIdU44HhpL30mxH06hTbNjFizNqU0ywuath1vyM9uc/ai2EFWCR4BQabYh p2xrnhEBQDG5rY23fatFvRv6qkmhgRZ0UzbEHhC2a8DJyLJIQ/OhWmNloO80Ztv7QFvE KeiS5I7LfQqR1jAGRmiowFpzgjEIwA7giDdcHf+brVvH0A03T9kxP+yepR2xYBfSqbag PaCNibYIDX/WEmOZonxePPvQ4TOW9WjK54H8nm/Db/OI6iCADC0d2Y/zj0s13FJYc4BM AK5Ynes853rm5s/kVeuqDtb2CD+Vx+bf9jJm9J3fcPDNhkN/TVO57vXX2TfgSkyJS1DC MeBg== 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=tkkS6sKTbNQ3LRfOUF34YGw1W/C6AI1LuWBgt5ptbqM=; fh=pEzMByEnePV36x3XCCNauQuREaASp/TIcmpU1ppDINA=; b=ZdO4hC8SSW/yPKzMmc+P5KankPICh999jdz/upq16PabI6SQd+TPvg86CxF7h0ZjAw 36eZFrx3nrq/H4WeHSNPiIJVM4KzLk9HRZir8m1zYev6iPdzrDVjjiUVMefAmNTWJkau h2jdMlXHDUBr/riKhyauAsFCCcs12hUl/X4ET6qr1RQAvpXIpKMwjuBo2AZkzi8i1clO hDy0+m4/YyTs4dHc5EzlMnU8Bvq6FO0q1mw4r92rl9SWTE4A1tqfDxjZaDBympLE8xsj IICMXK2sNmWIyvC/K/sxaW7lVFEyWB7sL8LKntuXTykmvH52x60P+i0Uuuu8SnSq5081 33sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PAUJTPJS; 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 k190-20020a6384c7000000b005634b511d76si4388941pgd.31.2023.08.01.12.55.49; Tue, 01 Aug 2023 12:56:08 -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=PAUJTPJS; 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 S230225AbjHAS1U (ORCPT + 99 others); Tue, 1 Aug 2023 14:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjHAS1S (ORCPT ); Tue, 1 Aug 2023 14:27:18 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E581269E for ; Tue, 1 Aug 2023 11:26:44 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fbc63c2e84so64438325e9.3 for ; Tue, 01 Aug 2023 11:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690914399; x=1691519199; 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=tkkS6sKTbNQ3LRfOUF34YGw1W/C6AI1LuWBgt5ptbqM=; b=PAUJTPJSwDHYar5prflFDgLr9WYuNLGRiVytqbObYxBz4NiwC765P4ZeWpHq1GaA1B UyHP57z67sPDOLogMayFmInhBM3WS8mSR+X8fEaihsNYM3QziuBcbgQneBxaStUePMO9 PnAZu2SktmCAr27UdcSLjkkqaYuTihJ6t70wYfejY5l+70/48O82rkrR7D2U6vuj+jzH N/V72sC/3zCbCGRifTxDdXiNjSTcLFSy/5gDDRsxWWAw8A3c8ZyV4ovb3fu8tp0wPgy/ 5n20lqUuKqBG2Vos1vN9H5YrdSOrdJCMdy9tBr8alTpsHUS55fCitYvReCukNw/BvfhH q7gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690914399; x=1691519199; 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=tkkS6sKTbNQ3LRfOUF34YGw1W/C6AI1LuWBgt5ptbqM=; b=LtN1q0KvY2uG4E7NTXhuFyRvY9PuRy2WjKmdjXOSRIHossFLMmBFM9OVl/ThzlVm+D NAA7pXuWnBEZ9VQblSfvQdxoX1Zimb/8onb16wreMtYttUPgW7+/kPcJGK2w85Sqoj/E hM962OPhOojyZ6shod6b5aoc/tNMWhJImgM8wDNvpkd557iohWDhyMf7ibiOQGoGUMCw f6YPxqeViD+afUWUxuEWdUsmvcyyk2ThfzjYyuSjv1BMRKLHPim5gJzmYbo4Nq1buSQp ZhzdZpufTm4uBoYxw0PpzAERD+T9zMPoJomxaRt9mDYSRkWu6aKawOJML+VK3sRco1ks GY/w== X-Gm-Message-State: ABy/qLbLUkvrQV40/Nb7uGmHIQ+b4t/Msy9/5sg/hZ24jy3U7SfmJLzX u0pFsX4S5WUikTS83T8epawJdw== X-Received: by 2002:a05:600c:220a:b0:3fe:2b76:3d7 with SMTP id z10-20020a05600c220a00b003fe2b7603d7mr1622998wml.10.1690914398970; Tue, 01 Aug 2023 11:26:38 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id n19-20020a7bc5d3000000b003fbc30825fbsm14480448wmk.39.2023.08.01.11.26.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Aug 2023 11:26:38 -0700 (PDT) Message-ID: <728e22ab-f68c-a891-f4d0-3d66cd03e9ec@linaro.org> Date: Tue, 1 Aug 2023 20:26:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v3 0/8] ACPI: thermal: Use trip point table to register thermal zones Content-Language: en-US To: "Rafael J. Wysocki" , Linux ACPI Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada References: <13318886.uLZWGnKmhe@kreacher> <12254967.O9o76ZdvQC@kreacher> From: Daniel Lezcano In-Reply-To: <12254967.O9o76ZdvQC@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi Rafael, On 25/07/2023 14:02, Rafael J. Wysocki wrote: > Hi Everyone, > > This is the second iteration of the $subject patch series and its original > description below is still applicable > > On Tuesday, July 18, 2023 8:01:20 PM CEST Rafael J. Wysocki wrote: >> >> This patch series makes the ACPI thermal driver register thermal zones >> with the help of thermal_zone_device_register_with_trips(), so it >> doesn't need to use the thermal zone callbacks related to trip points >> any more (and they are dropped in the last patch). >> >> The approach presented here is quite radically different from the >> previous attempts, as it doesn't really rearrange the driver's >> internal data structures, but adds the trip table support on top of >> them. For this purpose, it uses an additional field in struct thermal_trip >> introduced in the first patch. > > This update is mostly related to the observation that the critical and hot trip > points never change after initialization, so they don't really need to be > connected back to the corresponding thermal_trip structures. It also fixes > an error code path memory leak in patch [5/8]. I've been through the series. It is really cool that we can get rid of the ops usage at the end of the series. However, the series introduces a wrapper to the thermal zone lock and exports that in the public header. That goes in the opposite direction of the recent cleanups and obviously will give the opportunity to drivers to do silly things [again]. On the other side, the structure thermal_trip introduces a circular reference, which is usually something to avoid. Apart those two points, the ACPI changes look ok. Comments in the different patches will follow Thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog