Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp479085rdb; Thu, 21 Dec 2023 15:31:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGehvyjWNJ/FmG6a+3GTwhRHPUshhp96vq658zqDbfswh9NnP/EJNLPTbOHrNlqE/+Wtu2E X-Received: by 2002:a05:6214:20a1:b0:67f:3efb:a8e2 with SMTP id 1-20020a05621420a100b0067f3efba8e2mr471279qvd.26.1703201509018; Thu, 21 Dec 2023 15:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703201509; cv=none; d=google.com; s=arc-20160816; b=AmZaQiqSfqSl2jRmV2UNXT2O8HR7EmsNNboQCYAifXfM3SGYCzYCkgMqD3NLu75+fD XDNX4GmePjU3DvTnUfmSj1c8hu4V+AWj0hh/qofh6Sk2Qcs6CXsa5946ACiZXANmsl05 6QAIH8v9PO+0pkndUPOcaI5iGYSstDvOEjtajWV++oIhUq64gsNwJVy0r3LNJ7xBp2q4 5achro/C0yRAcfjPyPLfzOzjsbs4auamzUawCDqbdRZfHJ5b0gq2Ga0viJPnS7xEbKTs KZhPAgjw2FpyifwRWuc23UJHoT+vF6CZHBnvWCw5Oy/dvtK5H4m+OPf2dR4a+WYg0sZg n2Gg== 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=trj2UjC/YtIz6QCG5+fR8YcYr1hMRs+1oPS6HsPhuyM=; fh=LZ5h5v57dClzOx1TNX9Vshn6mxBc+MBvwNW2hZDrH28=; b=zhBgz9amwquY8IC04aQsJbDw90k+m+XRfCtdHe7hf3YKHuI5p4QILbndrEN00uoPo2 nNyaAHYJndM1VNYUqDgPihrvw55TPH3r/7uY8dYjkCxtA7ZFk93m5QpNgJ9tuLTxE4G/ YCFHCtHQklE9jcQOnUYlZ+rxsjpMVnFtvdyAQA7jGb886OkjobWNzwxTT/RZvmU6tZ3N LoUF2q3UHDUrEgsAJQaJbMvV0iPPhAr9UF6lpSeBA69fxqSVQL8blv4qJ0bSbyaaCMZ9 KEvWsCNQXAblaEQrAM4uhNOGBZfxcoy4dKWm5VIBujsV9DW98tUxx63/yEYD4Nb4R6B6 kHSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=YW5xSbd0; spf=pass (google.com: domain of linux-kernel+bounces-9181-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9181-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ay15-20020a05620a178f00b0077f073613a6si3406505qkb.364.2023.12.21.15.31.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 15:31:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9181-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=YW5xSbd0; spf=pass (google.com: domain of linux-kernel+bounces-9181-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9181-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BEEDD1C243A8 for ; Thu, 21 Dec 2023 23:31:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 852EA7948F; Thu, 21 Dec 2023 23:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b="YW5xSbd0" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (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 5854D76DC3 for ; Thu, 21 Dec 2023 23:31:38 +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-oi1-f177.google.com with SMTP id 5614622812f47-3ba1be5ad0aso863821b6e.0 for ; Thu, 21 Dec 2023 15:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iwanders.net; s=google; t=1703201497; x=1703806297; 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=trj2UjC/YtIz6QCG5+fR8YcYr1hMRs+1oPS6HsPhuyM=; b=YW5xSbd0ll37d8d2+DgOguuHxjLQ2wPOSy0FTweZR4c8zPu8NWdMQqBSWIQMpw8OIl GDqrxEwu8lw/ahLQtnqcyO0HkrodnayxaJ3DN81R8W9Q5v84kMMM/RMUEnczeLQzFawX UctD40+1qNVX2aeMLu4spxban5kIAPRHG1n9o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703201497; x=1703806297; 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=trj2UjC/YtIz6QCG5+fR8YcYr1hMRs+1oPS6HsPhuyM=; b=nADecz9fACItBKUyEiQxGjyCaaKjTV0GqYhOnI6UrgCYpw7opUTdDQDLfWi/8GHRk5 dGdRTkxNX7EFji7ahc5+Saz4anI5MDkHZrwl6YxIyv6TOPWxaCKVOW7iklwfi1XTWdyC +RvXj/kjNBVTm7WMRtZfLOf384wbvCs7DCGQgWluVsrZoTlg9t/LVt1cXLGgt1cMW7yG 4BJeje+APSw7b7b3J6JuDaUF7XqC1iaHYmKohdXL8NVoT5Iej5vugW+kiN9h/gOLhqYK 9G816tHUw/NDfbVxRyrlIANPb4z21pnkE9cC2MGUQDStu2TB+w6mWXAv2lUrfXvRWII0 bnTQ== X-Gm-Message-State: AOJu0YyukFR6cOTvVeVuCBRaEVrhX2D7VVqRep+EDK+tsJ83NJ9PSNyk XM1quwwtuwXs/MDAwKcniCpRCiIEaRrPYg== X-Received: by 2002:a05:6808:398d:b0:3b8:4841:2bae with SMTP id gq13-20020a056808398d00b003b848412baemr612259oib.19.1703201497380; Thu, 21 Dec 2023 15:31:37 -0800 (PST) Received: from eagle.lan (24-246-30-234.cable.teksavvy.com. [24.246.30.234]) by smtp.gmail.com with ESMTPSA id ew11-20020a0562140aab00b0067f626a5b2esm957438qvb.74.2023.12.21.15.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 15:31:36 -0800 (PST) From: Ivor Wanders To: rdunlap@infradead.org Cc: corbet@lwn.net, ivor@iwanders.net, jdelvare@suse.com, linux-doc@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux@roeck-us.net, luzmaximilian@gmail.com Subject: [PATCH v2] hwmon: clarify intent of fan min/max Date: Thu, 21 Dec 2023 18:31:33 -0500 Message-Id: <20231221233133.14978-1-ivor@iwanders.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <40285311-8adc-4ca9-86ce-27c8b723a102@infradead.org> References: <40285311-8adc-4ca9-86ce-27c8b723a102@infradead.org> 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..edfde3b13 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