Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1690931imm; Fri, 6 Jul 2018 04:57:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd0ThEq9OdHfYNjGzJZnXUbKxi7MOcgqpx61LNOwldu7L0VLVC+7Ji9EiPidJKj4SYCj4GV X-Received: by 2002:a17:902:20ca:: with SMTP id v10-v6mr9888230plg.255.1530878262811; Fri, 06 Jul 2018 04:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530878262; cv=none; d=google.com; s=arc-20160816; b=Cy/9z9nd0cxE3Pl9WE1YEu4HwUUU0O0h/LSzg/2HRxwcS5WSwG8CJEBH7YnfNxonvB ZJC7d80RJCnV6Mc5xMaZvKzSV6bzrY1cU5HkOrwWUoHZhDJ2zE22s3FQ6AxZwOP1GWix gWSSKSASX7yBQlzZcip6kRpU2Qz7U5FUDWNmZXAicTPaG6rt2PWcvuzVJbpx9veLwZ4x Fy+U95VabD/2BZjKG7zhFdc9ME7yGTSDJABbZe/TEaK1TKmp1avr9lOx3RHx6FYwNg6j 1yvTLFlkgi+tA3zXaqyOr6C9TlSLTgZgCxnIenjjytlCXBJMjHe/l+HyTI6VdTcrtkeX MrHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=6OyK3Uv1Xb7/kMGSpraWJ7I3Fty7xrGHk13o6muslqI=; b=A/36qzfVT7dN5WBOf16ZXSJmQa89qTR8JPwt4KziXeJlf/8e/ij1EyzOKBYw3mLsbx H2bXirZPnJT+7IY4rqzg6knD/+00x6Be3A/4QMbUacwURzNJ1KKDL1LnITLfebmOZsrH m7WFkaXak1gc17l4ntaZ9zn4cwmBA1gTOkGIYQ8EgTl5hDglTDVcMrvb4vlHhgfG7NQR 6X3GJqlpmXL+omcQgPaVvIHJEERFa69jyLRhM2QFYDlMAwkco/1goG6OVj8c3NaVESHt hu6pZmCWgeAYXLT7CWyx0bQRhVq2DTI6zFJ74wmJbr7qu9Fs1dkaMtBjhtGEdBeBrdH+ IO8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t21-v6si7625605pgb.553.2018.07.06.04.57.27; Fri, 06 Jul 2018 04:57:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932884AbeGFL43 (ORCPT + 99 others); Fri, 6 Jul 2018 07:56:29 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48080 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932851AbeGFL41 (ORCPT ); Fri, 6 Jul 2018 07:56:27 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w66Bs6hi130590 for ; Fri, 6 Jul 2018 07:56:26 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k24m5g7vp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 06 Jul 2018 07:56:26 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Jul 2018 12:56:25 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 6 Jul 2018 12:56:21 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w66BuKkd36831432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 6 Jul 2018 11:56:20 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0EE9C4203F; Fri, 6 Jul 2018 14:56:45 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3550642042; Fri, 6 Jul 2018 14:56:43 +0100 (BST) Received: from oc4502181600.ibm.com (unknown [9.77.202.248]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 6 Jul 2018 14:56:42 +0100 (BST) From: Shilpasri G Bhat To: linux@roeck-us.net, mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, ego@linux.vnet.ibm.com, Shilpasri G Bhat Subject: [PATCH v4 3/3] hwmon: Document the sensor enable attribute Date: Fri, 6 Jul 2018 17:26:06 +0530 X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1530878166-12589-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> References: <1530878166-12589-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18070611-4275-0000-0000-00000295DFBE X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070611-4276-0000-0000-0000379D6CF6 Message-Id: <1530878166-12589-4-git-send-email-shilpa.bhat@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-06_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807060134 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Shilpasri G Bhat --- Documentation/hwmon/sysfs-interface | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface index fc337c3..f865dd7 100644 --- a/Documentation/hwmon/sysfs-interface +++ b/Documentation/hwmon/sysfs-interface @@ -171,6 +171,15 @@ in[0-*]_label Suggested voltage channel label. user-space. RO +in[0-*]_enable + Enable or disable the sensors. + When disabled the sensor read will return -ENODATA. This + attribute can be used as per-sensor or per-sub-group attribute + depending on what is supported by the hardware. + 1: Enable + 0: Disable + RW + cpu[0-*]_vid CPU core reference voltage. Unit: millivolt RO @@ -236,6 +245,15 @@ fan[1-*]_label Suggested fan channel label. In all other cases, the label is provided by user-space. RO +fan[1-*]_enable + Enable or disable the sensors. + When disabled the sensor read will return -ENODATA. This + attribute can be used as per-sensor or per-sub-group attribute + depending on what is supported by the hardware. + 1: Enable + 0: Disable + RW + Also see the Alarms section for status flags associated with fans. @@ -409,6 +427,15 @@ temp_reset_history Reset temp_lowest and temp_highest for all sensors WO +temp[1-*]_enable + Enable or disable the sensors. + When disabled the sensor read will return -ENODATA. This + attribute can be used as per-sensor or per-sub-group attribute + depending on what is supported by the hardware. + 1: Enable + 0: Disable + RW + Some chips measure temperature using external thermistors and an ADC, and report the temperature measurement as a voltage. Converting this voltage back to a temperature (or the other way around for limits) requires @@ -468,6 +495,15 @@ curr_reset_history Reset currX_lowest and currX_highest for all sensors WO +curr[1-*]_enable + Enable or disable the sensors. + When disabled the sensor read will return -ENODATA. This + attribute can be used as per-sensor or per-sub-group attribute + depending on what is supported by the hardware. + 1: Enable + 0: Disable + RW + Also see the Alarms section for status flags associated with currents. ********* @@ -566,6 +602,15 @@ power[1-*]_crit Critical maximum power. Unit: microWatt RW +power[1-*]_enable Enable or disable the sensors. + When disabled the sensor read will return + -ENODATA. This attribute can be used as + per-sensor or per-sub-group attribute depending + on what is supported by the hardware. + 1: Enable + 0: Disable + RW + Also see the Alarms section for status flags associated with power readings. ********** @@ -576,6 +621,14 @@ energy[1-*]_input Cumulative energy use Unit: microJoule RO +energy[1-*]_enable Enable or disable the sensors. + When disabled the sensor read will return + -ENODATA. This attribute can be used as + per-sensor or per-sub-group attribute depending + on what is supported by the hardware. + 1: Enable + 0: Disable + RW ************ * Humidity * @@ -586,6 +639,15 @@ humidity[1-*]_input Humidity RO +humidity[1-*]_enable Enable or disable the sensors + When disabled the sensor read will return + -ENODATA. This attribute can be used as + per-sensor or per-sub-group attribute depending + on what is supported by the hardware. + 1: Enable + 0: Disable + RW + ********** * Alarms * ********** -- 1.8.3.1