]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI: Add new sysfs interface to export device description
authorLance Ortiz <lance.ortiz@hp.com>
Fri, 7 Sep 2012 16:28:16 +0000 (10:28 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 2 Oct 2012 04:15:01 +0000 (00:15 -0400)
commit2bc8195d56163f54d3036304efa8d71ab1091bf1
tree7dc0c27ecec5fadd97109df79f266d0f34671df3
parentfc54ab72959edbf229b65ac74b2f122d799ca002
ACPI: Add new sysfs interface to export device description

Add support to export the device description obtained from the ACPI _STR
method, if one exists for a device, to user-space via a sysfs interface.
This new interface provides a standard and platform neutral way for users
to obtain the description text stored in the ACPI _STR method.  If no
_STR method exists for the device, no sysfs 'description' file will be
created.  The 'description' file will be located in the /sys/devices/
directory using the device's path.

/sys/device/<bus>/<bridge path>/<device path>.../firmware_node/description

Example:

/sys/devices/pci0000:00/0000:00.07.0/0000:0e:00.0/firmware_node/description

It can also be located using the ACPI device path, for example:

/sys/devices/LNXSYSTM:00/device:00/ACPI0004:00/PNP0A08:00/device:13/device:15/description
/sys/devices/LNXSYSTM:00/device:00/ACPI0004:00/ACPI0004:01/ACPI0007:02/description

Execute the 'cat' command on the 'description' file to obtain the
description string for that device.

This patch also includes documentation describing how the new sysfs
interface works

Signed-off-by: Lance Ortiz <lance.ortiz@hp.com>
Tested-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Documentation/ABI/testing/sysfs-devices-firmware_node [new file with mode: 0644]
drivers/acpi/scan.c
include/acpi/acpi_bus.h