From mboxrd@z Thu Jan 1 00:00:00 1970 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 57C11C001DD for ; Thu, 13 Jul 2023 14:16:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235118AbjGMOQV (ORCPT ); Thu, 13 Jul 2023 10:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235177AbjGMOQG (ORCPT ); Thu, 13 Jul 2023 10:16:06 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA17A30FA for ; Thu, 13 Jul 2023 07:15:46 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fbea14700bso6696855e9.3 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=VZ15HaR/EALVR2MrWw5SVymLrSJY4WHfSI1Jdu6qhyor2G/FE9JvBid21z3XW4AR33 07Vo9x+3IbZBaEh8rM27Fkw5c6MYpRMx451sS1hPyJQ4OC8w9esctXDVFOC9f8WLaiXe YXM2GSS1sras0XjSwvm2EB+53L2k8WK/RJ/ECFQZoUT8kPBlyNGeqsvUIUMSNPKDdzah xd8eIrtW0/Iewt/h9OTH7s/SHJLfTfOn9pb58iwsHYk7VWS3XAAa6XcVVY9TSD6VLq+O ystrRB/NAFDIWDjs/0ShtMKgTo+pJ2OVAegOHhgKzUeY+wSRjls8QMLi17aS5fd7UE1Y 0qvw== X-Gm-Message-State: ABy/qLbBurYaaE4N4z5qrY3OBJZILULFKSr2qyhu8yN1t1coGLvxF7St MBqPALYGyjEwlL2PWcoaFkXzgHl4I0nKyz391Q0= X-Google-Smtp-Source: APBJJlGoSXGuvKHOIQI1GqBXjHPVj6v0YlmcmoK5atedfHpyJWSdsumLjEWgglcnangDwwjqixo45g== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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