Received: by 10.223.185.116 with SMTP id b49csp3991329wrg; Tue, 13 Feb 2018 10:55:17 -0800 (PST) X-Google-Smtp-Source: AH8x226wiUWdRP7zyX/f5UvOj2nkuzPUBIDBB5HR8C4Gv2FZyPPfKNXTT0dBnC60mXMZwv3SQ8mj X-Received: by 2002:a17:902:5902:: with SMTP id o2-v6mr1959345pli.79.1518548117212; Tue, 13 Feb 2018 10:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518548117; cv=none; d=google.com; s=arc-20160816; b=Ug5FrVC2hEIFDS9ApxpFqciKXmPwkhiLOqx8Aune+LKQH+jq7dHPzJ6nq/VzyBPBcG ZH6EvtwjtlhXp1g4dgLzo4n1zI4ETIoTxUUyeWfAzhxx/b6Wyz5LdPcq/NTb2Ddfy1gs 4XB2TiLE0ocvfwwnEzbccbCV8h853UiuywTFy9gKttTTRFvEIVv29unFh52tT1e48GQf OaENAFGXxYkkyS6PZvDbbeFxJvL7o5QG0gp88Zpnbwub9GtYwvsPKSjylGsUSJjXA1UU bfuTLH3ZIxhOW0teVMbP8YsfubHQ+9WikzDp8xJXA2yNhazoqmXac+ONpzvdqJ8TuVLz HSxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=rsg17EXKjztZT7jzMlPl0xLfdwVXGTjmW2yYpmTB9MI=; b=w0pZEU7y9PvuLfAAhU1VU6B2vnc/HxEffhTuAg0YnrOBMby3u47YiNAl7CGYp2rYiq d3W2yzmMnKYcndOk8F+iOczUUci36ndd7rk10Im497T7oOCrXO3I7SySdNfHp9xeq5xu 3zjEo7xSPD4Slc1IXopRjO1jMa0zoU+LHsN9JkxL73J42IjWBKw9KETMA4szcmbj+WQC d9gMt3k5sSqjgn7ECtTF67ggOxKtwZ4ANloNa7yurDiKZYEFoWY+gx2u628yckAquI6X wy9/TQ26bbX2LDKw2Hlb0Jz7KqtMlCSR0CnRVZJSXFONAhACQKf4sHJSG6P0q3xplGl1 ymig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uTBiyvIu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si1188037pfj.124.2018.02.13.10.55.02; Tue, 13 Feb 2018 10:55:17 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uTBiyvIu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965624AbeBMSyU (ORCPT + 99 others); Tue, 13 Feb 2018 13:54:20 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:55397 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965598AbeBMSyR (ORCPT ); Tue, 13 Feb 2018 13:54:17 -0500 Received: by mail-it0-f65.google.com with SMTP id b66so12306072itd.5; Tue, 13 Feb 2018 10:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=rsg17EXKjztZT7jzMlPl0xLfdwVXGTjmW2yYpmTB9MI=; b=uTBiyvIuGaRi7XeDs8EwD32A8LDJGxe29HzTZX31x5Q/+LCb4gS1agpAIYwzbCg4hg THTjrRgUtVfQ3nzRSSqjIHRu0hJt0qRt/RfmbDpYg+7AwiaTm2seds/SVBhY2E3I4pXr DQ6uWgKwW4R9MQH14pwvftTN3xSDXe6psmPp4fnr6EMYpgIwj7bJLmfWWPB3aaugIt4M 0hFkbGG6ZHnU+fgYLQp6JOLV0O14aE1w3TVDBJ2AZYOzSpOUzr0fgRDPhilM80bJ1pWH Tmh0/7n+rxqJXpQAZuf1oB88s+jDwyMXgMJIho8zaCL5QbgIEKrDzFbSdSszdj/43QHX y08Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=rsg17EXKjztZT7jzMlPl0xLfdwVXGTjmW2yYpmTB9MI=; b=BpIWiW5MIGTlcDffD+i3AWOcNvlGAIuZGk/6AlpVsU3oomLVEESa9si6DBBCoaRmnV urgKOiN8Pnl3wwsuU7GBvqBgGwjOZ9HLwweZvfRru0H2K2oeFBuVuLP0ZgtlMwl9qImJ +D/XfyHdWHBZa3eFY3frfnBO0ocX8InZqmwon3b96C0DtQGbl9piwCvh6MeesdQ9wWMr l0ZZ26vvUIWSYQdlgd2ZaSP20mS7aTP/PMqaVrNSmTe2K9sb64WbK19G6Oc0l4PjGtDI jpuIqozIHJU99iAW0Qul/bzMHIkLHdhkrR+8vkH4c/y7fjIVwzgWOv+O1vgYrcn0+2Mt eT1g== X-Gm-Message-State: APf1xPDHoSOBy53ugrqh2BGTKCIHkTPf17MaX+uvvs+1AqehdujzIIJV evZXkwZqcSFlxKaw3Xzn7PI= X-Received: by 10.36.81.85 with SMTP id s82mr3018243ita.75.1518548056070; Tue, 13 Feb 2018 10:54:16 -0800 (PST) Received: from mordor.localdomain ([49.205.217.191]) by smtp.gmail.com with ESMTPSA id b3sm6189645itc.35.2018.02.13.10.54.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Feb 2018 10:54:15 -0800 (PST) Date: Wed, 14 Feb 2018 00:24:10 +0530 From: Aishwarya Pant To: "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH Cc: Julia Lawall Subject: [PATCH] acpi: device_sysfs: update sysfs documentation Message-ID: <20180213185410.GA27234@mordor.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for two attributes - status and hrv in Documentation/ABI/testing/sysfs-bus-acpi. Compiled from git logs and the ACPI specification. Signed-off-by: Aishwarya Pant --- Documentation/ABI/testing/sysfs-bus-acpi | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-acpi b/Documentation/ABI/testing/sysfs-bus-acpi index 7fa9cbc75344..89feb01d1d0d 100644 --- a/Documentation/ABI/testing/sysfs-bus-acpi +++ b/Documentation/ABI/testing/sysfs-bus-acpi @@ -56,3 +56,39 @@ Description: Writing 1 to this attribute will trigger hot removal of this device object. This file exists for every device object that has _EJ0 method. + +What: /sys/bus/acpi/devices/.../status +Date: Jan, 2014 +Contact: Rafael J. Wysocki +Description: + (RO) Displays the ACPI device status - enabled, disabled or + functioning or present, if the method _STA is present. + + Return value is an integer containing a device status bitmap: + + Bit [0] – Set if the device is present. + Bit [1] – Set if the device is enabled and decoding its + resources. + Bit [2] – Set if the device should be shown in the UI. + Bit [3] – Set if the device is functioning properly (cleared if + device failed its diagnostics). + Bit [4] – Set if the battery is present. + Bits [31:5] – Reserved (must be cleared) + + If bit [0] is cleared, then bit 1 must also be cleared (a device + that is not present cannot be enabled). + + Bit 0 can be clear (not present) with bit [3] set (device is + functional). This case is used to indicate a valid device for + which no device driver should be loaded. + + More special cases are covered in the ACPI specification. + +What: /sys/bus/acpi/devices/.../hrv +Date: Apr, 2016 +Contact: Rafael J. Wysocki +Description: + (RO) Allows users to read the hardware version of non-PCI + hardware, if the _HRV control method is present. It is most + useful for non-PCI devices because lspci can list the hardware + version for PCI devices. -- 2.16.1