Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp462111rdb; Thu, 21 Dec 2023 14:52:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6FMYT/4VIre23MZfdMmrBhF68h8EtwVVuq9bF6+jsmjA0ONQhpi4o6q9WSblnaIKdDr1o X-Received: by 2002:a05:6a20:6a23:b0:194:ee89:1a15 with SMTP id p35-20020a056a206a2300b00194ee891a15mr561874pzk.89.1703199132490; Thu, 21 Dec 2023 14:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703199132; cv=none; d=google.com; s=arc-20160816; b=L/7uINUXFsFfW5QY+E/igVvc5t7DqvVJWr98NpHphIcgVlIcPWbM2rZMtqup1G2GE5 QOMZClRlDQbQsrW9B/Fsv3+7SYc8GoGdqo2FZCYrU2Osecz7ckeVxwDtpps+jo0uSNBe W5GtJvNa+4X08N/QKQ6E8Q99Dep/DyI/MG4lgUNAIISpQY5lX1OxaupGsbIpRjvKHLYa 3W3/Dy+EgD3fqbE7/Js3r2+VnEznHnYSq8i22VXi6xbu7rMQGEQoAJYbkJ9DlmSLK650 UrUeDpD4bvVpB7IMG5TJaNN1Agx5NVAMxnywThub+e8QYQLQeIT7IS8HmiLbLmbk7oxZ QXYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=nRr/sJytJ/lyMmoQqltmQuZwEfSFP9l8D/4B29sx8i8=; fh=HB9615LMzi627sK49meuZ9DwbOMKpwQbehXdumIuVFk=; b=Uny77kauiVfFKwARE45QyR1M/ocne42j6U6CjRaFHsAwu98tTFm64SUJhfFws/j1Hk AyngwxQ5AvBb2LTh08xCAmWEt3hVvlOFzher1214LgujnMzIiLKO1FHNywBQx40jc/IN D9lHnWqdP1M8Jv7QIjYbCIVxl4tPtPMdu6wvTY0jOgefSqqxWpHjehgQsPr9rp5fapnz uxTjbNh50OZV7zd4yjXpVA5w89Z8QYMzUvJDT0r3L3a91AyStVKtJOk1Ck4BJmnIIjVs SMQYzG/T37QOv8YVCIeNNktqgY7xMBlgVleT/BYnPUaLF90tT4wp9KyycCxcyh355MH8 sEzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=H70j47SG; spf=pass (google.com: domain of linux-kernel+bounces-9141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9141-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c12-20020a056a00008c00b006d94573e781si2229686pfj.380.2023.12.21.14.52.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 14:52:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=H70j47SG; spf=pass (google.com: domain of linux-kernel+bounces-9141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9141-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 26101288895 for ; Thu, 21 Dec 2023 22:52:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46E0479470; Thu, 21 Dec 2023 22:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b="H70j47SG" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 919B578E7D for ; Thu, 21 Dec 2023 22:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iwanders.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iwanders.net Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-67f47b15fa3so7782776d6.1 for ; Thu, 21 Dec 2023 14:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iwanders.net; s=google; t=1703199115; x=1703803915; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=nRr/sJytJ/lyMmoQqltmQuZwEfSFP9l8D/4B29sx8i8=; b=H70j47SGN5x8H28BTc2BBCQjEdQHsGJhZa6WHRU18+3ciIpQ+Zom8BY+B64dwL1ieT zfSa0bOXKrwK0HQnqwf/cEwwGFtQMuVOiCf5FZ/i1+XF1sUUEAHrDaTag0FNhKHiaRE9 m1LW0UeB5DzE7fOiANP8B4KSZmsCd4tm4dIIM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703199115; x=1703803915; h=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=nRr/sJytJ/lyMmoQqltmQuZwEfSFP9l8D/4B29sx8i8=; b=sQteYjk7iZdQTka7UskYlLDqROwLgFz01PAuFy55399bvyJX9kJEHs8chhaEpRDKaZ HCUWMECgEvOua3WOS20w/4gJffVuqEGw51ArAsR8iiH5OpNy6k7l9OkPeRIJ+aDfCBkt beANjvxnYll/nNZ4YIxKVfF3wzJqupqNU8ioySHvVa4OwVkwDU+1fSZ4cqInLon9G5Az pJ7QMbEbalwNq1wL1SqAm+Ysyh5JNgmPPYlHRZiHMeRLisXL4DG3Au2OEJV/3zempYmG aZFlRWfPIoiV+ggHGmQNaeHtmEhHu8S+GgBXQ4sr0pnY7ltsyQ2x1FQLKsUxCn1FDYVG dgUQ== X-Gm-Message-State: AOJu0YxfSqR95ulS+/ByH2xq2f4lcwxhmYgu6RNzuLva5CH8XUIbDIC8 ZW0RPJVyds3k3B/HXywMQpRKq9ifkFciLQ== X-Received: by 2002:a05:6214:19cc:b0:67f:5ab:364c with SMTP id j12-20020a05621419cc00b0067f05ab364cmr475903qvc.70.1703199115427; Thu, 21 Dec 2023 14:51:55 -0800 (PST) Received: from eagle.lan (24-246-30-234.cable.teksavvy.com. [24.246.30.234]) by smtp.gmail.com with ESMTPSA id a15-20020a0cefcf000000b0067f812c4a58sm782733qvt.60.2023.12.21.14.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 14:51:54 -0800 (PST) From: Ivor Wanders To: Jean Delvare , Guenter Roeck , Jonathan Corbet Cc: Ivor Wanders , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 1/1] hwmon: clarify intent of fan min/max Date: Thu, 21 Dec 2023 17:51:49 -0500 Message-Id: <20231221225149.11295-2-ivor@iwanders.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231221225149.11295-1-ivor@iwanders.net> References: <20231221225149.11295-1-ivor@iwanders.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This adds a link to the hwmon sysfs attributes in the hwmon patch submission bullet points. It also adds an explanation denoting the intent of the fan min and max attributes. Signed-off-by: Ivor Wanders --- Documentation/hwmon/submitting-patches.rst | 4 +++- Documentation/hwmon/sysfs-interface.rst | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Documentation/hwmon/submitting-patches.rst b/Documentation/hwmon/submitting-patches.rst index 6482c4f13..d634c41d7 100644 --- a/Documentation/hwmon/submitting-patches.rst +++ b/Documentation/hwmon/submitting-patches.rst @@ -141,7 +141,9 @@ increase the chances of your change being accepted. * When deciding which sysfs attributes to support, look at the chip's capabilities. While we do not expect your driver to support everything the - chip may offer, it should at least support all limits and alarms. + chip may offer, it should at least support all limits and alarms. Only + add attributes that follow the intent of the attributes, as described in + Documentation/hwmon/sysfs-interface.rst. * Last but not least, please check if a driver for your chip already exists before starting to write a new driver. Especially for temperature sensors, diff --git a/Documentation/hwmon/sysfs-interface.rst b/Documentation/hwmon/sysfs-interface.rst index f76e9f8cc..72dd5e02d 100644 --- a/Documentation/hwmon/sysfs-interface.rst +++ b/Documentation/hwmon/sysfs-interface.rst @@ -167,13 +167,19 @@ Fans **** `fan[1-*]_min` - Fan minimum value + Fan minimum value, this is intended as a way to specify + the desired minimum speed to the device if the device + supports that. It is not intended for communicating + a constant that denotes the lowest possible fan speed. `fan[1-*]_max` - Fan maximum value + Fan maximum value, this is intended as a way to specify + the desired maximum speed to the device if the device + supports that. It is not intended for communicating + a constant that denotes the highest possible fan speed. `fan[1-*]_input` - Fan input value. + Fan input value, this is the fan's current speed. `fan[1-*]_div` Fan divisor. -- 2.17.1