Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5891674rwl; Tue, 11 Apr 2023 11:25:05 -0700 (PDT) X-Google-Smtp-Source: AKy350bOTAuR9xxZroFHa1JGttxTNpjwqO3Vp3CiOzwF+rCPcBFpVC0JDaBh1/wFGlEPwFOM6/TI X-Received: by 2002:aa7:de97:0:b0:504:a2c8:ea60 with SMTP id j23-20020aa7de97000000b00504a2c8ea60mr7688501edv.35.1681237505457; Tue, 11 Apr 2023 11:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681237505; cv=none; d=google.com; s=arc-20160816; b=oHTWC6t+8Or83ojA4QB35Ttfc23FjtQJGUDvDHdc7MafI/SGiLOwnEmoBtxv6lUkwa YBqVl3WAfBF9NeYzcexuVRr1TQ+7wsoeRyS5GBzomWkhaBu3HZf0tg6nqV2jgNvGpBKV oT/W3ClrdqefLwt6h7v+i5DlvGkKehM6Xz9qnbxpAxj6+7hmCibx8nyEulynC5StgqO4 TaNSPNjm5dy9uCLJgsmI3BH6LplXdBIHtgSd10y3b1wXWyac56E0QwqqhRI9D6tA6EXL BwW3WebQ9UtN/l58TJilY0F+qgJOpRezPJ/kgAkIUDKLedhVo11Eu5MLLLXZ9rMqaQdN A/mw== 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=svwEgceGPQiPAraYw7wl2izO8WJYJw8iIq664z5AR58=; b=P6evFe8vUINjhk7yGg23Wgs0xz2qAa0xSGL71iTc6ox118c01yOL1sPQknJv2fwQSN T67KO3iF4E76SRwPv8rRFP3WyBD51Mrsx1VI2YAS99QSBdNWupi1th8yth37irUXp4hE RmNA3hyZz3RQmFMqsVqQwxHZMIgSoLmrhW4Y2PeHiPqlzSlIgxn0cJ5KzDXwfPPsKAPT BL70Hoh3PtyXdw1DeTIBMKHhamB5OxaPwUX70KClDWOWQdG31FvNs3dp8vqW95585Rhl FKX4Cku/PeSh6y8xwbs/gs6ssPVmqRZuBxCS0W3z/kK36ErQB+QTxeHdf9ykJJlLFyJV vNiQ== 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 l20-20020aa7cad4000000b005048136b2edsi601737edt.46.2023.04.11.11.24.39; Tue, 11 Apr 2023 11:25:05 -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 S229624AbjDKSX3 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Apr 2023 14:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjDKSX2 (ORCPT ); Tue, 11 Apr 2023 14:23:28 -0400 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D40746BB; Tue, 11 Apr 2023 11:23:27 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-947abd74b10so460874066b.2; Tue, 11 Apr 2023 11:23:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681237406; 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=9I88KzYwTfgVOVqx5a6cLuDweAMKwPiePasaGOIA6lM=; b=6JRDkrkvkk9ccBd/OcR5ogEZRgHoU5ZRGAmUsBbUGry/PdxnDbbnoA4jzDTstdOU+N pMUf4KhjaQ0gG+kKlmBaynFGokKy4AskBvUINQtTfiKihY8ygrD/ZFTNsxrqcg0jZumI Lc+fa1rkKolKfNMqJsgLPU7ePNe3e74kOx+EHDjhP6rrSCqfcvmMK4x835FnmqQKCssK PYAVfKXI8BQBW6nj5C7aCPa0h1V4R/AEDo+7rKem1l9Saa4HYARKx+GW1YqrCf0tPCXH aaxsMIQ+qyVMhYbVRmilmejbGSCqbRe6bFhLWCzS8bMySw25tn+L7DZyNnWy6qJCgfCO 9WBw== X-Gm-Message-State: AAQBX9epto7ir9XYqFnpCSx+Uff2+tEwvO0Pk91z1sgKH86K3iBfvlQG B5CHpodUsjzZ+6FjaScNQ9lHnV6asepSO1bGGYc= X-Received: by 2002:a50:9ee9:0:b0:504:efc0:9f97 with SMTP id a96-20020a509ee9000000b00504efc09f97mr35595edf.3.1681237405932; Tue, 11 Apr 2023 11:23:25 -0700 (PDT) MIME-Version: 1.0 References: <20230410205305.1649678-1-daniel.lezcano@linaro.org> <20230410205305.1649678-6-daniel.lezcano@linaro.org> In-Reply-To: <20230410205305.1649678-6-daniel.lezcano@linaro.org> From: "Rafael J. Wysocki" Date: Tue, 11 Apr 2023 20:23:14 +0200 Message-ID: Subject: Re: [PATCH v2 5/7] thermal/core: Prepare sanitizing thermal class sysfs content To: Daniel Lezcano Cc: rafael@kernel.org, rui.zhang@intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Amit Kucheria Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Mon, Apr 10, 2023 at 10:53 PM Daniel Lezcano wrote: > > Some drivers are accessing the thermal zone device structure to create > specific entries in /sys/class/thermal regardless the documentation. > > It is questionable as the specific information should be in the > driver's sysfs directory, not the framework it is dealing with. > > It has been long time these specific attributes were added in the > thermal sysfs directory and are limited to the ACPI thermal driver and > the Menlon driver. > > It is probable those are not really needed, so in order to figure out > if that is the case, let's create a default option disabling the > attribute in order to prepare a definitive removal. > > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/Kconfig | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig > index 4cd7ab707315..cca4e5cf6f30 100644 > --- a/drivers/thermal/Kconfig > +++ b/drivers/thermal/Kconfig > @@ -33,6 +33,18 @@ config THERMAL_STATISTICS > > If in doubt, say N. > > +config THERMAL_SYSFS_OBSOLETE_SINGULARITY > + bool "Enable obsolete and undocumented sysfs extra information" I was talking about making an extra Kconfig option in the Menlow driver to make the extra sysfs stuff depend on. Throwing ACPI in the same bucket is a non-starter. > + 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. > + > config THERMAL_EMERGENCY_POWEROFF_DELAY_MS > int "Emergency poweroff delay in milli-seconds" > default 0 > -- > 2.34.1 >