Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1524618rdb; Thu, 7 Dec 2023 01:16:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUxoPXuhgbvYJ9LdB9hslCGTi8Oqc52MLmLVKN2YKLaUbR1G4adxhXD0rlNrBDpRkeFTfV X-Received: by 2002:a05:6870:63aa:b0:1fa:ef75:461f with SMTP id t42-20020a05687063aa00b001faef75461fmr2476379oap.39.1701940589735; Thu, 07 Dec 2023 01:16:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701940589; cv=none; d=google.com; s=arc-20160816; b=xz5IAH8xAuMCrNdjKK2X+Ld51f9wNuwZGtyexmNAeUFyr9fUO5bwTBFnPXOWV3UnXu +bPArzEHJqKNPNsfVxfTevTbwCe+WpiJ6LPlApsnSFcXnL0KhNL6q4Kt3svCijOQnia3 2sOvZCtWZF4H95FcbOOIbFFoOr5bf0MWx6GBH61GY1+lTtqUfene+cFpl/v0Rmf64lsj IbpnwVtRgiUZZeyEs0z+6zJFx/nF0mwQWoxVJEtjGHUzhCoseY/23f5us6s/BjSmzZPr JzGZPIhPptNee29RzJD5VWelai7nAd9RPRJZH73aMZ/wohRq9pWDqn78Qo/NnPVW0ZOT +K6Q== 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; bh=ec8D2cB80HtjOh8sXGGBmIfwI/oAHT7GXGo7NkvSS7I=; fh=zouNM4yoMPuGU+E5NoC5CqlWeGQauOuARDDyjg7BSKY=; b=y1NViq4HkKr692MOu4wQRba/DgKUowmoS+xfH83TarjnGEbcQznWS1t66q7/EyHUR4 yZivOTmsefKDh5DdHX1TTaqdOxe9SgWXdwVDU2TLBXcGYJFXFqkqCzenzKDYfizKReqA XR1mOpA5f8pPR9Qt5bki6Xsjq9yVAk80LE7eM7ZGGELwUb550e0a2+3xp7RF1G+v3A5y aAwI9BAW+JuwyMdDA7nv+SBVddmiS68RPHTARDPRmk+0k2u98mVGNHpNYtxKGLgjlccR QqtpSLBIcEguWyD4oQNS1p01NG6WWONnTrqLePmJxKRU0RJr+PxC8WGIviJa/+D3ih0+ zEHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b2-20020a63eb42000000b005c6676349ffsi860350pgk.613.2023.12.07.01.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:16:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 55DFE802B044; Thu, 7 Dec 2023 01:16:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378414AbjLGJQS (ORCPT + 99 others); Thu, 7 Dec 2023 04:16:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjLGJQQ (ORCPT ); Thu, 7 Dec 2023 04:16:16 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 280971AD; Thu, 7 Dec 2023 01:16:21 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B38012FC; Thu, 7 Dec 2023 01:17:07 -0800 (PST) Received: from [10.57.6.119] (unknown [10.57.6.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 876463F6C4; Thu, 7 Dec 2023 01:16:19 -0800 (PST) Message-ID: Date: Thu, 7 Dec 2023 09:17:20 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] thermal/debugfs: Add thermal debugfs information Content-Language: en-US To: "Rafael J. Wysocki" , Daniel Lezcano Cc: rjw@rjwysocki.net, rui.zhang@intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20231110181123.2389186-1-daniel.lezcano@linaro.org> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 01:16:28 -0800 (PST) On 12/6/23 21:43, Rafael J. Wysocki wrote: > On Fri, Nov 10, 2023 at 8:37 PM Daniel Lezcano > wrote: >> [snip] >> diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h >> index 0a3b3ec5120b..809d37d0aa28 100644 >> --- a/drivers/thermal/thermal_core.h >> +++ b/drivers/thermal/thermal_core.h >> @@ -13,6 +13,7 @@ >> #include >> >> #include "thermal_netlink.h" >> +#include "thermal_debugfs.h" >> >> /* Default Thermal Governor */ >> #if defined(CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE) > > The change below is large and rather hard to grasp as a whole. > > It would be easier to process if it is split into a few smaller > changes building on top of each other IMO. > > Personally, I would start with stubs of the functions that are called > from the core and subsequently add more and more code to them. I agree, for this approach for this patch. Also we implicitly agreed that this CONFIG_THERMAL_DEBUG can fly upstream. What would be built on top in the framework and in governors, could be developed in steps, IMO. Thanks for starting this debugfs support.