Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4604443rwl; Mon, 10 Apr 2023 13:55:57 -0700 (PDT) X-Google-Smtp-Source: AKy350aS601fve7jQITbdeQA5kamEJ95uQpn7DmgyCAJoermVgehSPhUsj5tuJz0FT7/Z6LD2i1s X-Received: by 2002:a17:906:8595:b0:94a:7c88:263a with SMTP id v21-20020a170906859500b0094a7c88263amr4203410ejx.9.1681160157272; Mon, 10 Apr 2023 13:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681160157; cv=none; d=google.com; s=arc-20160816; b=pGAIR/7hizS7Re5zQIx1DA9jzt8XEC4taWix/pwH3HUW/3IaT5QEFVzp254jMdSB5k qle0xwJ39tnd2MsE7MFyys0W+VZ/dncOe43LRuloQ0YkqscNEWm1ywXpms9VBA0VMc1R asq/INwCBpgZfQaUrH9jvLJrNz3UhvvEQL6Svl2yPmI3f6dxjorMBAOJg2Ukn36SlNwf 1M0eXOgRr9qU1zb+UbMMkeQgp5e7GGfRQ9pOO4n4s2kETzXHwjWKg5re7nxWZMQsMo1A UVhMVVESC13BrBfDPiZff0XCq5vr3ZBII7v2kGTdHQl7kY8oYjFmpRdw1ibNFaco92D2 Q+yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6mEz7s6yXlIw25RW3QnKrwFn+iq3xNtUieG1OCq5dPk=; b=Z+DcVbAoQQFm9dy817hVUPJd9WqQ0cbgBLs8f+YjleGJYdMmLclbXO3daRcL3TQQhr JbvziyL9YSYYedVsStAvFtrrHKh8xaQFTmx7qk5s2ExX5Ap/6TMJdG/+gvUr4WLM6o7M Jk1sP0q6lgnIgwFN68kIl13ChB3pEaVGA0roR3VdWkLGc5BwhWk89JAL9zjB1nBlz7YP hRY1bA8Laelezz+UXQVdcxT4BETUXrHaVlikadK0yTuC0EyE8QkWYWiQqb4QSFk2gCVx lVNQTJkiXDXEN+3K7gunM+7lIksRX8F/e4UPBrvTcG2ybBnEdCMlndgcH37b6Hg3UxSd wpsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NlLccR0K; 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 ox7-20020a170907100700b0094a6be436a1si3714339ejb.152.2023.04.10.13.55.32; Mon, 10 Apr 2023 13:55:57 -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=NlLccR0K; 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 S229895AbjDJUx7 (ORCPT + 99 others); Mon, 10 Apr 2023 16:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjDJUxp (ORCPT ); Mon, 10 Apr 2023 16:53:45 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FE2F2118 for ; Mon, 10 Apr 2023 13:53:43 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id e22so5442694wra.6 for ; Mon, 10 Apr 2023 13:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681160022; x=1683752022; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6mEz7s6yXlIw25RW3QnKrwFn+iq3xNtUieG1OCq5dPk=; b=NlLccR0KaN5Ll/7MrXFcv0iaJaQMvc9Kqagpb1at2P4U852rFGmVf2y2OQE9s2mL5k ytRuSnPFYurJpACKpwJOfhDci6BllshkGnz2eDgHc5RwR47dC3sbKK2WmUeKJ6EPqHHJ 6cHrV9pUVWno3115aq5NNQzMfO4QRmn6Ai03OZtl7HSJ79QuCJPU3zwkRgWA3Zvuqnby o3te8dPJz9quPZ3ADWRglYk1/brpRGN272ndnRdq1x2zlK7AcUuZOk5cUXFdx1ykUBOy IXI7+P+t+rBBJEmulk3yKZFoj+cOj743k7aEr7D1mOAThuQjfCxiWu3vgT2S4cmZL0Xf fcEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681160022; x=1683752022; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6mEz7s6yXlIw25RW3QnKrwFn+iq3xNtUieG1OCq5dPk=; b=DhnZvHfy5rgYfXw3BdBIumNbcxC8XB/M4L++WaBVoBABirCWBCjDSMOsMZCTR+YLFL dzCwrAHSg3ZGbk/Hnzjey+kUx/OgPSYZbYunI7bty/e4k2OlouQ0OObEaXs3bhXFksAi 6pOj+9IpNCfStCZOfJqBkgDeEJavnghlMkTlU7S4DczTYgufythlS54HUsph5kA8gSTs jv9FwIi8fbwW9tsDWdZPxd788TGIPDvt5FC9gzPkeER6pYlKZie6cWUTe7qNVVraLbJ0 Buk7DqJU73Mf6YPt5laAIvdFd1EJWD397BzdNQ7X6InTkSLbFEMFs1dQPrsBNtkCvg9E z0Qw== X-Gm-Message-State: AAQBX9fnSd7m22bQ1LSWLj1GKsBraK0DfvfSlR+aPmpeK5/YwBraIEbH x4DUcWo/FkOhqXg7kIqej+8muA== X-Received: by 2002:a5d:6588:0:b0:2d1:53f5:900c with SMTP id q8-20020a5d6588000000b002d153f5900cmr7843051wru.20.1681160021960; Mon, 10 Apr 2023 13:53:41 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:2611:592:3b9e:d2ae]) by smtp.gmail.com with ESMTPSA id e17-20020adffc51000000b002ef2e148d59sm11966789wrs.16.2023.04.10.13.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 13:53:41 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: rui.zhang@intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Amit Kucheria Subject: [PATCH v2 5/7] thermal/core: Prepare sanitizing thermal class sysfs content Date: Mon, 10 Apr 2023 22:53:03 +0200 Message-Id: <20230410205305.1649678-6-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230410205305.1649678-1-daniel.lezcano@linaro.org> References: <20230410205305.1649678-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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" + 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