Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3851208pxb; Mon, 27 Sep 2021 04:13:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4mwI33cCYmeWd/QNI2nxVFUT5WZoLhnMewWL4h8fhYRkfeXG7r3jz9MwnwQoClFMLcMkU X-Received: by 2002:a17:906:7053:: with SMTP id r19mr25781328ejj.476.1632741183410; Mon, 27 Sep 2021 04:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632741183; cv=none; d=google.com; s=arc-20160816; b=Hb7EO/0+lHZCv7gLzGQPZodjPjc3ruVTofdgW5G2BQ44cEsMZvr3F07yRWv3/EdRMD 905A/8Ln6PN4bvL27Zh5eIDzAe05D7IP2DG1RjimmspW2gm0mBKiTQVhDjeU+UUMfdYi Cb/kjKW1M+OvfrNyDQ14W5LGqWx9JYt4aTRo+DqAcVwVBHdKXpAH2H4Z4ivusG1ajIm7 dk577K3l9+6BcLCkTVYvQ/Znhyc4KEXe6DAAMFkPoJSUSTapkXOSKU37Hw2FKvHDKX9H 0SMwa4U8Izfb//64+Es2heAnm7u4cjoYN0kaqBn6avRYOxw21I1pUEa5EZyo6Z312aNj WsVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rZ31fiFJyLDx8jyjrIZu2BMJoJ5xjiFY823GkKhC/Jw=; b=kPjpl/AQ8LG3yMD3xW9fYIIvjiP1Wvq9Vl3O8q9fG0voGVTWnctg6P04pQDAp3djAL SdNwBTG+wA+ZozJbu65Iv+vaSu4mLED5QtcfcUgIWiaLsl5AlHYqOYfmZuTNoUcQx6v8 H0M409tOICOVfw+DSrV1wo9nS+OaJ7PLYG5uAwRwuiL97aFS/u/fFlCoynxX3i8jvFoz QZBfPaDWtSxaqJx9DMhBLRlqZPQ2auhSjgf/Ln4aCWgZnqLrrSkpykRUDQFB0UgpVbdN iNP6IqVBF6atJ/ZUxiLyL9JLivG8fIem6oSjDkn1cWTt+M85F12gKSGrIdFmH8NVoIRp Y1xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rZvtExBv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si3564335ejo.264.2021.09.27.04.12.27; Mon, 27 Sep 2021 04:13:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rZvtExBv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233980AbhI0LMl (ORCPT + 99 others); Mon, 27 Sep 2021 07:12:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:58586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233924AbhI0LMj (ORCPT ); Mon, 27 Sep 2021 07:12:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4515560F6B; Mon, 27 Sep 2021 11:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632741062; bh=BkHsQjcUqqJd+UovClt2vj9iy3OwymogfsOoQT/wzQ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rZvtExBvyew4zyUkmeu3+tGzsTWPxkuX74vn74LYm8QWvXXeTvbnllsEBk3oAJo6i XHI1qtCAQjr68luaIZSgFv3qSwPuVnhUsn2RA7+C3I+urTPc6sfBX8d8Z6cijh7wQt y6I+PoOsI69DERvAF6yagtSuz985Ks0GioER31L1HWGLlVqVHdV4eVI8+M1K+ts8uX 4FDgL13I5XZ8C/OGi5hYpN1+zmCEW2oQ/1ir2w4eXxizOQMxtufv3o+aFIuDrnoDC9 r9sOi2lMPfvIM7a672LAOXNOVipV3OO6AaW03oZu17r8COZjn0xzhUHNTMYuLOh1Zm c9z8TRSh2GSAw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mUoXE-0005yC-9P; Mon, 27 Sep 2021 13:11:00 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , Hans de Goede , Perry Yuan , linux-kernel@vger.kernel.org Subject: [PATCH 2/7] ABI: sysfs-platform-dell-privacy-wmi: correct ABI entries Date: Mon, 27 Sep 2021 13:10:51 +0200 Message-Id: <42846621fdf2bf206feb114d06b14cbc47475fb5.1632740376.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As described at Documentation/ABI/README doesn't contain an Attribute: field. The way sysfs ABI is supposed to work is that each different attribute would have a separate file. So, the right way to map this would be like: /sys/.../dell_privacy_supported_type/mic_mute /sys/.../dell_privacy_supported_type/camera_shutter /sys/.../dell_privacy_current_state/mic_mute /sys/.../dell_privacy_current_state/camera_shutter However, it seems to late to fix that, as this was merged already on Kernel 5.13, and a change right now would be a regression. So, instead, let's at least fix the entry to match the expected format. While here, fix the format of the contact, which is not a valid e-mail URL. This should also fix the current warnings produced when building the docs: Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi:35: WARNING: Unexpected indentation. Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi:2: WARNING: Unexpected indentation. Fixes: 8af9fa37b8a3 ("platform/x86: dell-privacy: Add support for Dell hardware privacy") Signed-off-by: Mauro Carvalho Chehab --- See [PATCH 0/7] at: https://lore.kernel.org/all/cover.1632740376.git.mchehab+huawei@kernel.org/T/#t .../testing/sysfs-platform-dell-privacy-wmi | 60 ++++++++++++------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi b/Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi index 7f9e18705861..1f1f274a6979 100644 --- a/Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi +++ b/Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi @@ -1,55 +1,71 @@ What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type Date: Apr 2021 KernelVersion: 5.13 -Contact: "perry.yuan@dell.com>" +Contact: "" Description: Display which dell hardware level privacy devices are supported “Dell Privacy” is a set of HW, FW, and SW features to enhance Dell’s commitment to platform privacy for MIC, Camera, and ePrivacy screens. The supported hardware privacy devices are: -Attributes: - Microphone Mute: + + Attributes: + Microphone Mute: Identifies the local microphone can be muted by hardware, no applications is available to capture system mic sound - Camera Shutter: + Camera Shutter: Identifies camera shutter controlled by hardware, which is a micromechanical shutter assembly that is built onto the camera module to block capturing images from outside the laptop - supported: + Values: + + supported: The privacy device is supported by this system - unsupported: + unsupported: The privacy device is not supported on this system - For example to check which privacy devices are supported: + For example to check which privacy devices are supported:: - # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type - [Microphone Mute] [supported] - [Camera Shutter] [supported] - [ePrivacy Screen] [unsupported] + # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type + [Microphone Mute] [supported] + [Camera Shutter] [supported] + [ePrivacy Screen] [unsupported] What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state Date: Apr 2021 KernelVersion: 5.13 -Contact: "perry.yuan@dell.com>" +Contact: "" Description: Allow user space to check current dell privacy device state. Describes the Device State class exposed by BIOS which can be consumed by various applications interested in knowing the Privacy feature capabilities -Attributes: - muted: - Identifies the privacy device is turned off and cannot send stream to OS applications - unmuted: - Identifies the privacy device is turned on ,audio or camera driver can get - stream from mic and camera module to OS applications + Attributes: + Microphone: + Identifies the local microphone can be muted by hardware, no applications + is available to capture system mic sound - For example to check all supported current privacy device states: + Camera Shutter: + Identifies camera shutter controlled by hardware, which is a micromechanical + shutter assembly that is built onto the camera module to block capturing images + from outside the laptop - # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state - [Microphone] [unmuted] - [Camera Shutter] [unmuted] + Values: + muted: + Identifies the privacy device is turned off + and cannot send stream to OS applications + + unmuted: + Identifies the privacy device is turned on, + audio or camera driver can get stream from mic + and camera module to OS applications + + For example to check all supported current privacy device states:: + + # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state + [Microphone] [unmuted] + [Camera Shutter] [unmuted] -- 2.31.1