Received: by 10.213.65.68 with SMTP id h4csp929190imn; Wed, 14 Mar 2018 04:38:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELvkdlZAIMLL/dVrOcB8KLxvn10dstovNREiwd22Sg6w7Qx8o5VNEIritkckcjdj5ThLQqOU X-Received: by 10.101.72.2 with SMTP id h2mr3476999pgs.240.1521027539706; Wed, 14 Mar 2018 04:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521027539; cv=none; d=google.com; s=arc-20160816; b=GXwud3gWfBwhda8m3D7NGQlFID/OGUc9CYUOmukFH+9tFQEDaH9t9pUDzD00XSB4Wu Kpa2ycCmhWqTbW6H0auQiIhWNCR43x1+zttdQICIC1ylfj8ipZpbcx2n/mQVckkoM7WE q01pbTYcUtHI6LBxOafOZLj4h4jnheg+R4LnGp7ZbRfhukG+jpX0ux88/myQsFabaHQ+ Ef8aCA57arNwmSrysY1vYB7dYIOdtU2JUxi3tHEKoyIHcc5Z3uB5o3iF/1VQxbyRUP3j mInpXexjxcLG0QZ4TtjM9BsMXIGeveTvN0i3zWAi/MUr4Vl6Nx/fsAy2N0KZ558gn6+p IU2A== 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 :arc-authentication-results; bh=CcD1xgOG8FqFKeqlmg8jfgwrKmLOX0JPtleNhzbw1ZM=; b=gD47XAKrYz2x7SnmNe4APadP8Gat/J6Ip0aoboJ56Jv4mUUuED5pFhfPwjOz6g811L RtRGt8Lx21jnl35MINZUZEQBgKceQbjFvmwWYE8RUlTYT83rtYV2oF7RcQJ0xhf/x6OQ 2lpLTGC1Rq63LwwWFln7Z7/rEhxhlkp4iN3tgaHY5JndrI1NxCGK36BFlWuAM3GeU0F0 OlQk9C+/EPTebNvyRb6gRCRW1TEMvNmlvmceSpqdKl4lcXpmhmBxu4XwLQDLo14T04hA Lrqo9DWF4B//iGo2tVNPx64+cr9XMmeefdHq23TAyowwGcVs4yb6oUKl3ibZhdqFCYgS k28w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si1712430pgt.470.2018.03.14.04.38.45; Wed, 14 Mar 2018 04:38:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751413AbeCNLhr convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Mar 2018 07:37:47 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:57345 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbeCNLhq (ORCPT ); Wed, 14 Mar 2018 07:37:46 -0400 Received: from 79.184.254.228.ipv4.supernova.orange.pl (79.184.254.228) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 696cf52d56dc4993; Wed, 14 Mar 2018 12:37:43 +0100 From: "Rafael J. Wysocki" To: Aishwarya Pant Cc: Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH , Julia Lawall Subject: Re: [PATCH] acpi: device_sysfs: update sysfs documentation Date: Wed, 14 Mar 2018 12:38:19 +0100 Message-ID: <2522965.OaQQetJcBo@aspire.rjw.lan> In-Reply-To: <20180213185410.GA27234@mordor.localdomain> References: <20180213185410.GA27234@mordor.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, February 13, 2018 7:54:10 PM CET Aishwarya Pant wrote: > 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. > Applied, thanks!