Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5449532rwe; Tue, 18 Apr 2023 07:05:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bM9WZLiYR/vYp792ECKvOCsRU3tIdqKwAQwua/5Ek4VuNU6/HbQo2AX4OB6OHkEpVe/me6 X-Received: by 2002:a17:902:c94e:b0:1a1:7b8d:6719 with SMTP id i14-20020a170902c94e00b001a17b8d6719mr2393622pla.27.1681826746676; Tue, 18 Apr 2023 07:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681826746; cv=none; d=google.com; s=arc-20160816; b=edkqn9hk0mmwl+NUdskdVw7f1E96J19ggiEE0k3Jn20VUuo+TGZQkt6uHmwFS6cnqo PjFJCRqkUqjn3UJxm/aYVr8VHAcdxd9QmlJGgJ5rUJn5IgbRJI53zJSVQHoym3sW0Cn6 kP6mwoFq74L12/kYfuQnIQdNM4/LtiUXgHfiA7uPo+GbtHMyJM1EPt8HEbRhqmru69mk /fmgGomzAu9yucoT2EuyxsvhhXk+iDS1FgfnL9EOQhsOy3BFaKRpVoEAds2cT7QIW/00 bkm8saf7M1+Wx8kGXmLQx9Tp713jHa5cjomVg+P83mgH2NXqylf7IDX/S2qAZiwv5LXP Of2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=teqm8c3t7kMw62l2MhA9iqpeniohb0zBMO8gphI6F/U=; b=LJ7zt3BAK4ycMds+8RfSrhxq9IYUtwTeGuHcPhvOSDhbYz5H2QEtj2er6+2T/f3327 7KxwJLAo+2Oq667bW6jb3LIRxzgzkUCyJk4VOVv8dRigJkOZERtb+gRv3oHe4hmH/UkL LoUz/HlcXbs+q/Pi5iDpNZmP014zIOSoWGjK//HPSxnHc6Hd1uIvK6gZ3Ei3c/zsOUP5 30INPH77uJA2ZrQB+8S5Vqk5Y76kXW5fa1iRuiaO/UH1GiHFyNRn1bTixgY97AR+1BkQ q5DtILIBp6IfGGBZgk0YIx5isot8QKqjGc9Ayv2P82FFQxwqhxoINKg/erWygwV0p/S9 xecA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a1709026b0700b001a24efe1f14si13605312plk.78.2023.04.18.07.05.21; Tue, 18 Apr 2023 07:05:46 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232405AbjDRNsu convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Apr 2023 09:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbjDRNss (ORCPT ); Tue, 18 Apr 2023 09:48:48 -0400 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9542D1387B; Tue, 18 Apr 2023 06:48:18 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-94f59fbe2cbso39025166b.1; Tue, 18 Apr 2023 06:48:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681825675; x=1684417675; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3uozf3W91u85ycR8eSvHXlO7LPB6dzE935AuEqaKzec=; b=PvC06eTMtd+qlA84QurcYHy8XYPG+BDwQSmZCqkdEFPmM4mzWJRl5IHK2LmA+EOkWr 7hQ+L8vyG7qypUs7hGeNSPGKjEzHQnBXBj4506KwxVIRvYhUQtlNRECwLtZ7q2ecS3tp YF11PtsWawcZTwetkCEsFWrHczyPwBGXZ82kNd9oGI53kl9wT3AP6zHXnJ4KYTereQsy kc9B/Yj5HVb1jakvKQzy8E7SKBqhs/nl5JaQz5wgnZ27ZXmAwrQhXFbgi1IA3nsdGRbA kFL3gW5GSpkC3PD1cJUE019Ite9b13E6k1WbEhUPuAOAq2fiK520q+k9WM/wfySQzDz0 BhTA== X-Gm-Message-State: AAQBX9cdtQTKgxoooq3DFfIPO4Rc8ptaqS0sGKE26+O1Rh2Dt1+mgkcm Kg02g9fZdIC/pxN6hx81hkYwJYUryPCU4HfBql4= X-Received: by 2002:a17:906:3f49:b0:94e:63ae:5b9b with SMTP id f9-20020a1709063f4900b0094e63ae5b9bmr12182147ejj.7.1681825675404; Tue, 18 Apr 2023 06:47:55 -0700 (PDT) MIME-Version: 1.0 References: <20230413114647.3878792-1-daniel.lezcano@linaro.org> <20230413114647.3878792-6-daniel.lezcano@linaro.org> <7fd7df2d-f473-c0fd-5c3c-40d0fb697db7@linaro.org> In-Reply-To: <7fd7df2d-f473-c0fd-5c3c-40d0fb697db7@linaro.org> From: "Rafael J. Wysocki" Date: Tue, 18 Apr 2023 15:47:44 +0200 Message-ID: Subject: Re: [PATCH v3 5/6] thermal/drivers/acpi: Make cross dev link optional by configuration To: Daniel Lezcano Cc: "Rafael J. Wysocki" , rui.zhang@intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Len Brown , "open list:ACPI" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Apr 18, 2023 at 3:44 PM Daniel Lezcano wrote: > > On 18/04/2023 15:38, Rafael J. Wysocki wrote: > > On Thu, Apr 13, 2023 at 1:47 PM Daniel Lezcano > > wrote: > >> > >> The ACPI thermal driver creates a link in the thermal zone device > >> sysfs directory pointing to the device sysfs directory. At the same > >> time, it creates a back pointer link from the device to the thermal > >> zone device sysfs directory. > >> > >> From a generic perspective, having a device pointer in the sysfs > >> thermal zone directory may make sense. But the opposite is not true as > >> the same driver can be related to multiple thermal zones. > >> > >> The usage of these information is very specific to ACPI and it is > >> questionable if they are really needed. > >> > >> Let's make the code optional and disable it by default. If it hurts, > >> we will revert this change. > >> > >> Signed-off-by: Daniel Lezcano > >> --- > >> drivers/acpi/Kconfig | 13 +++++++++ > >> drivers/acpi/thermal.c | 62 ++++++++++++++++++++++++++++-------------- > >> 2 files changed, 55 insertions(+), 20 deletions(-) > >> > >> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > >> index ccbeab9500ec..7df4e18f06ef 100644 > >> --- a/drivers/acpi/Kconfig > >> +++ b/drivers/acpi/Kconfig > >> @@ -336,6 +336,19 @@ config ACPI_THERMAL > >> To compile this driver as a module, choose M here: > >> the module will be called thermal. > >> > >> +config ACPI_THERMAL_SYSFS_ADDON > >> + bool "Enable thermal sysfs addon" > >> + depends on ACPI_THERMAL > >> + def_bool n > >> + help > >> + Enable sysfs extra information added in the thermal zone and > >> + the driver specific sysfs directories. That could be a link > >> + to the associated thermal zone as well as a link pointing to > >> + the device from the thermal zone. By default those are > >> + disabled and are candidate for removal, if you need these > >> + information anyway, enable the option or upgrade the > >> + userspace program using them. > >> + > > > > I don't think that the Kconfig option is appropriate and the help text > > above isn't really helpful. > > I'm sorry, I'm missing something. Don't we want to make these sysfs > extra information optional and disable them by default ? No, I mean no Kconfig option at all for this one at least for now.