Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7210990rwp; Tue, 18 Jul 2023 11:41:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWPW4OyS3GMer22/rdyCYKsRd5ZTyEQQz7ojyDs/pmLI/xpscttpaLYId72fpvHx0ukkEP X-Received: by 2002:a17:902:e80b:b0:1b8:17e8:5472 with SMTP id u11-20020a170902e80b00b001b817e85472mr651026plg.1.1689705663669; Tue, 18 Jul 2023 11:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689705663; cv=none; d=google.com; s=arc-20160816; b=x3wlW+ijt98htDOP0iZuKxudHP956YvTlE2tWRLZLYSjQ/mfHiFW8BAngX0DWySit9 MxIi6TYKLb4yB1/i8NTSIpJXf5147DMVEQD5x+yTnpKOkMk29JSrdjmuxNysqlhxWa0c N6Z3AwvEXiDflVs2lsVI6VZSivGB3H0rb8R8khv5MCsiqUbXVKDabDScllp3Gq5nHkl4 CeYztYGCu7cuFDkPHOzJVfOl8CkSWnEfEnsB0kgHRJuUwheHNJM4Xjf/96oFP/iLaX52 xGA66iLJmGC0bU4YhEo3JksnQJ6KaqEWEmBU8yCHKJGCUEP2Km8DwEXEib9ZM6LdQfnJ DPew== 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 :message-id:date:subject:cc:to:from; bh=fJLfU3xy2ashav9LR3x9X6K/YomuVTI/sMFV1AF+1dE=; fh=WAm0nkxw3rD71A4QzwJS1JiPPKRsyn91IiWMPsOrzoY=; b=lFddPgVq5BWztNk75r2yK/j8FZWkRASYdzosMORsQVJphU1eBDCchzXwiByAf/Y2GB ZtrjzcuwLG+fbLf+fsc30SqkCgUF2/hHG/wfbLna+MfaFUyWYsqqPE/SHRZN1g3n9XmQ 7KxWnxNCKFGF3y09j6ylDbVZmILr9stqQOJsOUkt3QgT6zzh7G/s7Fnn8/Y71jx/cJKr s6PELHt4mldYDH9RULHJEIydsx/43Y3RSS2gAb+Oh12hmGzliVekLHosD+t0etpmwyoH IXfDnUbwQ+gRnzAFpRJXF8ueE5Y7x7sSqz+GP3JSDBeo1ovCbe0kCbzd8yHOGS/bKfKE 1v3w== 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 q15-20020a170902b10f00b001baff05d89csi1964217plr.130.2023.07.18.11.40.50; Tue, 18 Jul 2023 11:41:03 -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 S229989AbjGRSWA (ORCPT + 99 others); Tue, 18 Jul 2023 14:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjGRSVs (ORCPT ); Tue, 18 Jul 2023 14:21:48 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508B9E8; Tue, 18 Jul 2023 11:21:30 -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 6ac080c78dc13803; Tue, 18 Jul 2023 20:21:28 +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 1E5DA6614F7; Tue, 18 Jul 2023 20:21:28 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada , Daniel Lezcano Subject: [PATCH v1 0/7] ACPI: thermal: Use trip point table to register thermal zones Date: Tue, 18 Jul 2023 20:01:20 +0200 Message-ID: <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: gggruggvucftvghtrhhoucdtuddrgedviedrgeeggdduudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepjedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehmihgthhgrlhdrfihilhgtiiihnhhskhhisehinhhtvghlrdgtohhmpdhrtghp thhtoheprhhuihdriihhrghnghesihhnthgvlhdrtghomhdprhgtphhtthhopehsrhhinhhivhgrshdrphgrnhgurhhuvhgruggrsehlihhnuhigrdhinhhtvghlrdgtohhm 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, RCVD_IN_DNSWL_BLOCKED,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 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. I have run it on my test-bed systems, but this is not too representative, because they each have only one ACPI thermal zone with only one (critical) trip point in it. Thanks, Rafael