Message ID | 20231227190036.20725-1-code@stefan-gloor.ch |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-12221-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1617218dyb; Wed, 27 Dec 2023 11:06:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqzqxUwMgvZp+MBM9Q4ivGRw+5GkqTpnLFzd+rtYUUulUYlUoR1h+GBmD98u4NFB2YTG5K X-Received: by 2002:a17:902:784c:b0:1d3:1afb:fe57 with SMTP id e12-20020a170902784c00b001d31afbfe57mr4165884pln.29.1703704019129; Wed, 27 Dec 2023 11:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703704019; cv=none; d=google.com; s=arc-20160816; b=iya+5B3s/TBOYxRrmMB4m2gBWrLz4PqUW+PCaUCGMsnsoSiQgUoRXGoOaG5Auzdf1W a88Y4MY/VFGKB/pMS1SiXKDN6vcxU6kX8zqeJRwa0a0RlsIsJZi7MkHKzLaYC8o74EB5 W533rUpsW9OsDRZkTX3LVmazZMDLNV0RmKunnWQRMs2UApq0zt8X3N3LRRCVkw6r1nBa oHwsdMkU8f3PPykO4TjsouZpc//SH9IlMT0tE5SHS+wxltPrmrPBYlgw8bWmyv7gnBfp Qwn/vKVgVrzn3eriv4JRdPwBT8dSAwwyxJlrq1JNruhiLZueYgWV9Ro7gbshyqP8XmV5 WFCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=LY7NEwFFGmD7V2XHY4JPK3COu8hVltpFORjNH38xD1A=; fh=fjNSoY0LvOsWcORqEKQpjzRbUZLsws7xZhkeCHIPeqI=; b=zbfx9qfwtju6FLOA6giz4+pqMmOkvuebNUdca8HpmU/pIgg67iiObYiSuB3Db5jMz2 LHUt9JiHhQNuRTK/z2+lbDZ+PYEUEbjoLOl+z4VgYOFih1z4AmD1+Baf1tSvdRH78USr UzZIe+nQ4Lsw6L7GGGxUITrKC4YqQzxOnLiWG0n5WMYv6Dr+GWePgOuGxkQvRh1VZPoI vGHLp8aDyZVdT6kU8dPl5cAnQVdxPfrjf2i5rZaOmGe/ErRswsBivYlbdiVAYgaUecjE 99ygqgLYdzpxey974SYpNCS6PsoLD1gO/7LbiP/BThEzcx+7mlld4k1ZarC2NXyW4E+j qj2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12221-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12221-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b001d0bc650573si11655801plf.225.2023.12.27.11.06.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 11:06:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12221-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12221-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12221-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 645F2B2278F for <ouuuleilei@gmail.com>; Wed, 27 Dec 2023 19:06:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34E2B47F5A; Wed, 27 Dec 2023 19:06:13 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mxout017.mail.hostpoint.ch (mxout017.mail.hostpoint.ch [217.26.49.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0188447A63; Wed, 27 Dec 2023 19:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stefan-gloor.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=stefan-gloor.ch Received: from [10.0.2.44] (helo=asmtp014.mail.hostpoint.ch) by mxout017.mail.hostpoint.ch with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2 (FreeBSD)) (envelope-from <code@stefan-gloor.ch>) id 1rIZBW-000BDR-1t; Wed, 27 Dec 2023 20:03:18 +0100 Received: from 157.20.79.83.dynamic.wline.res.cust.swisscom.ch ([83.79.20.157] helo=thinkpad.localdomain) by asmtp014.mail.hostpoint.ch with esmtpa (Exim 4.96.2 (FreeBSD)) (envelope-from <code@stefan-gloor.ch>) id 1rIZBW-0000IA-1H; Wed, 27 Dec 2023 20:03:18 +0100 X-Authenticated-Sender-Id: code@stefan-gloor.ch From: Stefan Gloor <code@stefan-gloor.ch> To: jdelvare@suse.com, linux@roeck-us.net, corbet@lwn.net, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stefan Gloor <code@stefan-gloor.ch> Subject: [PATCH v3 0/1] hwmon: (sht3x) read out sensor serial number Date: Wed, 27 Dec 2023 20:00:35 +0100 Message-ID: <20231227190036.20725-1-code@stefan-gloor.ch> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Vs-State: 0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786463105101387735 X-GMAIL-MSGID: 1786463145372842911 |
Series |
hwmon: (sht3x) read out sensor serial number
|
|
Message
Stefan Gloor
Dec. 27, 2023, 7 p.m. UTC
The temperature/humidity sensors of the STS3x/SHT3x family are calibrated and factory-programmed with a unique serial number. For some sensors, this serial number can be used to obtain a calibration certificate via an API provided by the manufacturer (Sensirion). Expose the serial number via debugfs. Changelog ========= v2 -> v3: - Remove #ifdef for debugfs - Add debugfs cleanup - Do not expose serial number if read fails v1 -> v2: - Change from sysfs to debugfs - Add documentation improvements Stefan Gloor (1): hwmon: (sht3x) read out sensor serial number Documentation/hwmon/sht3x.rst | 11 +++++++ drivers/hwmon/sht3x.c | 56 ++++++++++++++++++++++++++++++++++- 2 files changed, 66 insertions(+), 1 deletion(-)