Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1202015rwp; Thu, 13 Jul 2023 07:35:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSUSDyBi1BMU9iW2gnfFCxTk7NliZuL8CT+R95a55fkL/zzIF/Elb6vkcv2cal8VZmBoyK X-Received: by 2002:a5d:9ed7:0:b0:780:ce72:ac55 with SMTP id a23-20020a5d9ed7000000b00780ce72ac55mr2223963ioe.10.1689258936079; Thu, 13 Jul 2023 07:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689258936; cv=none; d=google.com; s=arc-20160816; b=TkusdjOWhVu4asChy5mOC9+2aG01OcCyo5C5O8f4ElbEiuU2EEiCw3HQsy+5kVoCY2 sByvIjCmnS7F3SyiLatVTnHiERTneWWb969VDfTMuhTFdqsT5XTTMNLjO+V6EsMaV9w6 mJ82WaH0EsdfHXzNQ2TOyRsaYfQjarKZEPn2CFfKWFch9kuQdW1DaMHifY/dtvupN4e0 0wIIzDFegi1gmcWhTDLDZezKeiKH52h4H87l/QyUyek5QhUOfy8AZz/r3uRP79P8ga0C o3J9tYMuFK705QpNIbaGNRrzcEubqPcEKS46XOsoXZuL7BcieL+D/uujCXZH7khhJhOY FsCg== 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=sUgqDpBZ74sWqmYg8Ri9u/mrFE+UfDnQjDBviVPA/GM=; fh=s2xXK4pTKzPFuEAtafaLjDoQBqDwYlmZSmmJGWvNCqU=; b=tqGb5gP0H23WxwwrzKYf8BDDjOrxVuwR3yHkNfhbXBCHGIAae5PwM+GvbwYHpgT0Tf B7K+ZgkOjt6GBLGjTEkF90qwd8rfiwB/Lzr9Vkwh0nfI7PsASE8jeq00bD3D602vkbpK D4S5YYUi5uMACHCqQCiAAc7qlGg/Yah8yu/sHqxVSQQCFM+/lQ2jlA6754HYZF/Gn7Qh 4uzQG4oRaeC9F4CsfeyRIH+s3UfcMnI3zMOqTy7tVdnqnu+g6XnBXzaafLysbxOHARLD bTTRLQUrE7io9F0HvMCyKp+svtlcRWNyjY0pyWcBUTYDfSpEVbxd+MKgUiEAwRhwbygx M3Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M72dTklm; 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 j37-20020a635965000000b0055b5f13dd66si4979913pgm.755.2023.07.13.07.35.23; Thu, 13 Jul 2023 07:35:36 -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=M72dTklm; 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 S235129AbjGMOQW (ORCPT + 99 others); Thu, 13 Jul 2023 10:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235182AbjGMOQG (ORCPT ); Thu, 13 Jul 2023 10:16:06 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA35530FB for ; Thu, 13 Jul 2023 07:15:46 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbdfda88f4so6788765e9.1 for ; Thu, 13 Jul 2023 07:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689257745; x=1691849745; 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=sUgqDpBZ74sWqmYg8Ri9u/mrFE+UfDnQjDBviVPA/GM=; b=M72dTklmTZEaD8bUxRCy1+B5MZeS6wQPD06zuBz5+qPSMiUIqWW/uq3EOXmhZ36rp9 UDbHW4N7Bdopy+shySfoH6lHrexf24cm6QxgeqWbiCdbuGUWO3CImFRH8GhDnNBfVqk4 ZcoQlHnFG0h839YEaNCcULGW7wUVgvI0zEB3GNafb/eHf2Lxe/g2w78FvwWd6EgPSd7w g9tG4TrAW+Id9qdC1aNusbMieK6C5+JVZ0gmaQBZDAbpOFL8H8bhggqZKbCb/3qvtNE8 M2Jj9oIj/6C88Xw594nTgEqMjSEyS0CJsZiPLKYMnakDY4vB70pZ8buSRXwzudxY1tUD ciDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689257745; x=1691849745; 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=sUgqDpBZ74sWqmYg8Ri9u/mrFE+UfDnQjDBviVPA/GM=; b=T0Vh821jNbdvc4QiUBbuFEiCPzmNWTarP1SRkBSJ351lOWpy92jDnYkITcsZXxXhrA Rd7IUSw6/BZU/OHOy0lpfTDiA9yyQ1Z9wvlkSxLGT42/Y+OXE/JQZvxuHOhogsSYL2+R lC6XAtdN2e8ZYc2R/7as/ORSIHAUBZaRQNiwPuGq3TnbE/uFYfsOdVxIRdkIcLGkTwpG +PZnM0KVcCUAQos3UOfnqmIBx+3FJn3R6eQmbUHjh8ED9TbvqB1Iv5bMG+k09rFF5QTD Ch/dax7a7YhQArXVXfZa/9+zKoDvveuED+gZvMK0hhn8IRdiW4/+tFM5ZaME0/O5aF0q Nd2Q== X-Gm-Message-State: ABy/qLZHXbfT2LI95rFIPRiQRx05VPU/i+4AJiLUysy3OALmIB+aM2O3 RTbasDXXLlcZ1/RwNTR2Avv2uw== X-Received: by 2002:adf:e383:0:b0:314:dea:f1f8 with SMTP id e3-20020adfe383000000b003140deaf1f8mr1733806wrm.11.1689257745109; Thu, 13 Jul 2023 07:15:45 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id t16-20020a5d49d0000000b003143bb5ecd5sm8104610wrs.69.2023.07.13.07.15.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 07:15:44 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2023 16:15:44 +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 v2 0/4] One more step to the thermal zone structure encapsulation Content-Language: en-US To: "Rafael J. Wysocki" Cc: linux-pm@vger.kernel.org, thierry.reding@gmail.com, linux-kernel@vger.kernel.org, srinivas.pandruvada@linux.intel.com References: <20230707203731.848188-1-daniel.lezcano@linaro.org> <82b2d4dc-4583-925a-9e3c-77ae30d0d261@linaro.org> <032bda42-ba99-c207-c30d-a5f69bd10095@linaro.org> From: Daniel Lezcano In-Reply-To: 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_NONE, 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 On 13/07/2023 15:02, Rafael J. Wysocki wrote: > On Thu, Jul 13, 2023 at 2:24 PM Daniel Lezcano > wrote: >> >> On 13/07/2023 13:30, Rafael J. Wysocki wrote: >>> On Thu, Jul 13, 2023 at 11:33 AM Daniel Lezcano >>> wrote: >>>> >>>> On 07/07/2023 22:37, Daniel Lezcano wrote: >>>>> The series provides more changes to self-encapsulate the thermal zone device >>>>> structure in order to protect wild accesses to the thermal zone device >>>>> internals, especially the trip points and the locks. >>>>> >>>>> The first patch adds a macro to warn at compilation time if the >>>>> thermal_core.h is included in a file not belonging to the thermal core >>>>> code. One warning will happen with the nvidia drivers but this is in >>>>> the way to be solved. >>>>> >>>>> The second patch reorders the headers inclusion in the core code. >>>>> >>>>> The next patches makes the int340x drivers to use the thermal trip >>>>> update above and the different accessors for thermal zone structure. >>>>> >>>>> Daniel Lezcano (4): >>>>> thermal/core: Hardening the self-encapsulation >>>>> thermal/core: Reorder the headers inclusion >>>>> thermal/drivers/int3400: Use thermal zone device wrappers >>>>> thermal/drivers/int340x: Do not check the thermal zone state >>>>> >>>>> drivers/thermal/gov_bang_bang.c | 1 + >>>>> drivers/thermal/gov_fair_share.c | 1 + >>>>> drivers/thermal/gov_power_allocator.c | 7 +-- >>>>> drivers/thermal/gov_step_wise.c | 1 + >>>>> drivers/thermal/gov_user_space.c | 1 + >>>>> .../intel/int340x_thermal/int3400_thermal.c | 44 +++++++++---------- >>>>> drivers/thermal/thermal_acpi.c | 1 + >>>>> drivers/thermal/thermal_core.c | 7 +-- >>>>> drivers/thermal/thermal_core.h | 4 ++ >>>>> drivers/thermal/thermal_helpers.c | 1 + >>>>> drivers/thermal/thermal_hwmon.c | 1 + >>>>> drivers/thermal/thermal_netlink.c | 1 + >>>>> drivers/thermal/thermal_of.c | 1 + >>>>> drivers/thermal/thermal_sysfs.c | 1 + >>>>> drivers/thermal/thermal_trip.c | 1 + >>>>> 15 files changed, 45 insertions(+), 28 deletions(-) >>>> >>>> Applied >> >> Sorry, I did not think you may wanted pull them in. >> >> I can drop them from the tree if you prefer? > > Let me apply them directly. Ok -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog