Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp321465rdb; Thu, 16 Nov 2023 22:42:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUIarrgcHk+nG/V33o/BUWDRjxxGeLR3b6PTE1ZNzopDgV+fpkhd2GUYRr4Ocn+S8QwvTX X-Received: by 2002:a17:90b:1e10:b0:280:2935:af27 with SMTP id pg16-20020a17090b1e1000b002802935af27mr18338647pjb.7.1700203342556; Thu, 16 Nov 2023 22:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700203342; cv=none; d=google.com; s=arc-20160816; b=s0/K6qO9yh2QtxWTpDR+5sKY5EVqAmeQmUwhBtqpyrLN9gGENTq46H7feO2oIUGvV3 TtWHpVJGDTs5CnKQiXm8Wz+l9YHTR0qu9Uopo6I20Hfb4zM2BtiER8/xXsxugSfDbTMv HTwOxyDARS2boB/4gl/17mLnVJjMEED0lmpgQBt2Euv1cLzF+ThmxJsqW0sL2pAzgbi8 RL8pjY6ze4WI9KwC3s6hTrRbjLXzFsnF7h9O1e921mkzM5QJxt9JiSPhP38V8zZtG8ha PV48i4fVC6MF0iooMl3/lp55KdyaMjEhSMUbdTzgAvB2Up0Ip8qSMvOg91V4v45CtBPK 8Jig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=wJxvgI9i9l4IaqoW7P3lNFiG+zzz8tjNlzjKlxr/b2E=; fh=OoA0JIoxTojNJszcxJcQZWfGSy/3Ut2NK1b7QxQqqL4=; b=Mxh/S/48JC1FGdwUWL1uVeZPvLi39Y2BGk4M9fMVf0w9iUm+gHk5a5NJvxY+h5yOKD PLv5k3rIuRyVgmp9Ftn2Kzlm7Ge5ZxXzuYcc5/Qbw58sfv7tfSldMNGqzvWQS54BGsBZ QvEXUGSJ+aLsJ3pEUgovsfZbG0OhQLJNQFrzgFMAuLTOWdrDJ1zwq/mIlchx2POFyZH5 5VF+yyW1UeAhUnf47VhtPkoHyZZPfnQzuX1rBl6fDzhdcuxD2LC588/RYP1kyH0xhi1o yF/GDJQpyhibcAaVzRGRVMarhIG5brgLZsgEVLPHzHjLhpx2/4L42mZsznlwOLB4TVq9 MJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LVYJxwC3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ce3-20020a17090aff0300b002800c1493c5si1295021pjb.29.2023.11.16.22.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 22:42:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LVYJxwC3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 340478059E4F; Thu, 16 Nov 2023 22:41:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235036AbjKQGku (ORCPT + 99 others); Fri, 17 Nov 2023 01:40:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233723AbjKQGkp (ORCPT ); Fri, 17 Nov 2023 01:40:45 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217E9D51; Thu, 16 Nov 2023 22:40:42 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5480edd7026so1829375a12.0; Thu, 16 Nov 2023 22:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700203240; x=1700808040; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wJxvgI9i9l4IaqoW7P3lNFiG+zzz8tjNlzjKlxr/b2E=; b=LVYJxwC3q5LbsLzR7h6+6EeT+UoN9uuVzr3DgTasGNXdw7s+80w6PbOsrkd137GhXY 93cZiJubnuxpwoSGxF0pDSYADufBXBFFaAIJBVfkSKU17iF4re8orhtXsF9zW+a4icJE ya81PXSpS+31Eta3FQlnQjXqvSSguT61Fn37xP8RIKJdRCMZ7o852id2bDUq613DmSpk KCACtklKs3kQJ/NKYiJD6vEVRLOuM/WOKlwd9K4ol/rkY48FSVl2i4P/0uf8wlyYZr6s qSvgxI+NZjDdTZ/G8MrGr8B35xZxNWa3mJiQMkL/b9U899P54z8gQL9cjb0OqHNW4NCQ f5zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700203240; x=1700808040; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wJxvgI9i9l4IaqoW7P3lNFiG+zzz8tjNlzjKlxr/b2E=; b=R15Vs9uwOp0Z0x/dfqbddoa1PjB485uAgHBgzREIYVEwXTaVeWZneLzK2I1VRiZId+ 9CuDZUT3F0dJqsd+R2UrG+sMuCchedNpfvqQHKW1/0vpuQF7ng5spjK91N1m+oGMZfAq tfW61gUPnQa4j8mnb471PbB2GjdWUlBYDJPw5tzCvPSsHVcGmqcWB1y+Dpm6oYHwCFYV 8sklIPd107tJkXmm0PNPJGsU4CRg6o5blgAHqdNkcixrPK/mRcCMNypA7dvEiQCcYFH8 aYndRXz2r8Sb7fOIv/qfAtxJNdnQ9kqYJpi6SS2zhLA9y0lP6jYKBTJ1RhMDglKsZAHj fnyA== X-Gm-Message-State: AOJu0YyjqQNp0GMvuPmqabDongBmDJLQ6etRkJGNZcZ5w8Ka3voF9JZ4 jbAZlsURIUbORp0AcSiDsEU= X-Received: by 2002:a17:906:18e1:b0:9e0:2319:16f0 with SMTP id e1-20020a17090618e100b009e0231916f0mr3941019ejf.65.1700203240514; Thu, 16 Nov 2023 22:40:40 -0800 (PST) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id v27-20020a170906489b00b009d2eb40ff9dsm447514ejq.33.2023.11.16.22.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 22:40:39 -0800 (PST) From: Javier Carrasco Date: Fri, 17 Nov 2023 07:40:35 +0100 Subject: [PATCH 2/4] ABI: sysfs-class-hwmon: document missing humidity attributes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231116-hwmon_abi-v1-2-8bfb7f51145a@gmail.com> References: <20231116-hwmon_abi-v1-0-8bfb7f51145a@gmail.com> In-Reply-To: <20231116-hwmon_abi-v1-0-8bfb7f51145a@gmail.com> To: Jean Delvare , Guenter Roeck , Greg Kroah-Hartman , Mauro Carvalho Chehab Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700203237; l=2753; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=Cz+uGSmEvNxYiJra9hc4k5xY8AQoDk7mM0es6NtamR4=; b=+58ZzPaTZ2R5I5UWBrwjTwtE5eyOF2ev+T+eTDKkDmU10zs+FameNPN82EcVYp8W8gxFSpfOs rxoDZPG3jBuA12wKokQpeHXVGrME2gZhFqleiDFixoLDULBZPxuWKat X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 22:41:10 -0800 (PST) All these attributes already exist and are used by the hwmon subsystem, but they still must be documented. The missing attributes are the following: - humidityY_alarm - humidityY_fault - humidityY_label - humidityY_max - humidityY_max_hyst - humidityY_min - humidityY_min_hyst Add the missing humidity attributes to the ABI documentation according to their current usage and access rights in the hwmon subsystem. Signed-off-by: Javier Carrasco --- Documentation/ABI/testing/sysfs-class-hwmon | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-class-hwmon b/Documentation/ABI/testing/sysfs-class-hwmon index b998a42add95..dccbcdc2dad8 100644 --- a/Documentation/ABI/testing/sysfs-class-hwmon +++ b/Documentation/ABI/testing/sysfs-class-hwmon @@ -887,6 +887,15 @@ Description: RW +What: /sys/class/hwmon/hwmonX/humidityY_alarm +Description: + Humidity limit detection + + - 0: OK + - 1: Humidity limit has been reached + + RO + What: /sys/class/hwmon/hwmonX/humidityY_enable Description: Enable or disable the sensors @@ -899,6 +908,15 @@ Description: RW +What: /sys/class/hwmon/hwmonX/humidityY_fault +Description: + Reports a humidity sensor failure. + + - 1: Failed + - 0: Ok + + RO + What: /sys/class/hwmon/hwmonX/humidityY_input Description: Humidity @@ -907,6 +925,57 @@ Description: RO +What: /sys/class/hwmon/hwmonX/humidityY_label +Description: + Suggested humidity channel label. + + Text string + + Should only be created if the driver has hints about what + this humidity channel is being used for, and user-space + doesn't. In all other cases, the label is provided by + user-space. + + RO + +What: /sys/class/hwmon/hwmonX/humidityY_max +Description: + Humidity max value. + + Unit: milli-percent (per cent mille, pcm) + + RW + +What: /sys/class/hwmon/hwmonX/humidityY_max_hyst +Description: + Humidity hysteresis value for max limit. + + Unit: milli-percent (per cent mille, pcm) + + Must be reported as an absolute humidity, NOT a delta + from the max value. + + RW + +What: /sys/class/hwmon/hwmonX/humidityY_min +Description: + Humidity min value. + + Unit: milli-percent (per cent mille, pcm) + + RW + +What: /sys/class/hwmon/hwmonX/humidityY_min_hyst +Description: + Humidity hysteresis value for min limit. + + Unit: milli-percent (per cent mille, pcm) + + Must be reported as an absolute humidity, NOT a delta + from the min value. + + RW + What: /sys/class/hwmon/hwmonX/humidityY_rated_min Description: Minimum rated humidity. -- 2.39.2