Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4408947rwo; Tue, 25 Jul 2023 05:52:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlHznCkBU3XOzmRn+MFIIBGE26DszrY6GJORLerH5JIP8JvgSnQ8qK/N+2kPE0ik6RUMfVNV X-Received: by 2002:a05:6a20:bf1a:b0:136:7d41:e7a7 with SMTP id gc26-20020a056a20bf1a00b001367d41e7a7mr11184291pzb.40.1690289540150; Tue, 25 Jul 2023 05:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690289540; cv=none; d=google.com; s=arc-20160816; b=jJrtyD0w+fUgJJDmue8Ba5Q0O16kInUw1frZG1X0YVBdBKsoF3teRC/OUD8uoRPMyP i5XMRKiFr7DGhtho38iPM4gD4Y5oBUJOFZjQLGctxdNnBzQLjfstoEqO4ZvTCR+csRrl BCzPdLOd0dhPEgu9OuG48+cOgDgpltDcngYaYD14x47NAyPPtylDGXjlOILCDA1no3sX DCWRZqE311imHWs9xeRjyzbVLvbcIpqH3I71crLlaW2MoXrBz0GdOX8+0DIT3pejDnyL RgCXHTKj9N0Y/06/R9HeUvU5SP5GHqAhxz5/NoCSDsRTAl4/ynWVoBjMOaLuDkEdxQJE pwFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=74agP/23866oOv/9iSQogYaDj8/Zy27Wx3KWSzqF+HA=; fh=WAm0nkxw3rD71A4QzwJS1JiPPKRsyn91IiWMPsOrzoY=; b=f8Tno2Rhd4JydDTxQZDUiomOx9aoKnSX0r0OL1cecxp287PlkdW9UrNR+XxtuVGz/D uOy6p39JZnn3XXEdpinRQmxK4FK7XR/rX8vL3tI/foA3pe7CXJkrZU1wxytAUQbLuf80 wewQHBpSxzOEFPGoxUfXZAU+dY1llYe2LQeqCttymfsKMQjvppQbsm8qQvQmz48BBYXv UywtfoHgGQbAWpCvKYsOqXN6heOa2Lf18xqi3WZ9BWseKAgjwQxWq+M4U6ePBhqcjbDl /9qb43iH3JMlv9HlGfhCIIzAXDVkdDelVNwCDJzM6J6gu6+NzQ0zqmhtXuO1TnlKQMR2 NZfg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b005578c6a767esi11293606pgp.885.2023.07.25.05.52.07; Tue, 25 Jul 2023 05:52:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232481AbjGYMZ4 (ORCPT + 99 others); Tue, 25 Jul 2023 08:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233540AbjGYMZi (ORCPT ); Tue, 25 Jul 2023 08:25:38 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EAF2173E; Tue, 25 Jul 2023 05:25:35 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id bd90851703453bdb; Tue, 25 Jul 2023 14:25:33 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 12C9B661B0E; Tue, 25 Jul 2023 14:25:33 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada , Daniel Lezcano Subject: [PATCH v3 0/8] ACPI: thermal: Use trip point table to register thermal zones Date: Tue, 25 Jul 2023 14:02:20 +0200 Message-ID: <12254967.O9o76ZdvQC@kreacher> In-Reply-To: <13318886.uLZWGnKmhe@kreacher> References: <13318886.uLZWGnKmhe@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedriedtgdehudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeejpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhhitghhrghlrdifihhltgiihihnshhkihesihhnthgvlhdrtghomhdprhgt phhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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]. Thanks!