ACPI / sysfs: Use new GPE masking mechanism in GPE interface
authorLv Zheng <lv.zheng@intel.com>
Thu, 4 Aug 2016 08:43:45 +0000 (16:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 17 Aug 2016 00:10:44 +0000 (02:10 +0200)
commit18864cc4892d207bf8bb81898f5dc7fe9e66d6f0
tree1417480fa88b43c2ed0dc44877bce460555185f0
parent6bd483c0367f1e1c9d4e970d6ccdadf53d571916
ACPI / sysfs: Use new GPE masking mechanism in GPE interface

Now GPE can be masked via the new acpi_mask_gpe() API and this patch
modifies /sys/firmware/acpi/interrupts/gpexx to use this new facility.

Writes "mask/unmask" to this file now invokes acpi_mask_gpe().

Reads from this file now returns new "EN/STS" when the corresponding GPE
hardware register's EN/STS bits are flagged, and new "masked/unmasked"
attribute to indicate the status of the masking mechanism.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c
drivers/acpi/sysfs.c