linux-sg2042/drivers/acpi/acpica
Lv Zheng 09af8e8290 ACPICA: Events: Add support to return both enable/status register values for GPE and fixed event.
ACPICA commit e25d791e4b3d5b9f4ead298269610cb05f89749a

There is a facility in Linux, developers can obtain GPE and fixed event
status via /sys/firmware/interrupts/. This is implemented using
acpi_get_event_status() and acpi_get_gpe_status(). Recently while debugging some
GPE race issues, it is found that the facility is lacking in the ability to
obtain real hardware register values, the confusing information makes
debugging difficult.

This patch modifies acpi_get_gpe_status() to return EN register values to fix
this gap. Then flags returned from acpi_get_event_status() and
acpi_get_gpe_status() are also cleaned up to reflect this change.

The old ACPI_EVENT_FLAG_SET is carefully kept to avoid regressions. It can
be deleted after we can make sure all its references are removed from OSPM
code. Lv Zheng.

Link: https://github.com/acpica/acpica/commit/e25d791e
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2015-04-14 14:51:52 +02:00
..
Makefile Merge branch 'acpica' 2014-08-05 22:50:12 +02:00
acapps.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
accommon.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acdebug.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acdispat.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acevents.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acglobal.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
achware.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acinterp.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
aclocal.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acmacros.h ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
acnamesp.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acobject.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acopcode.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acparser.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acpredef.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acresrc.h ACPICA: Linuxize: Reduce divergences for 20150410 release. 2015-04-14 14:51:50 +02:00
acstruct.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
actables.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
acutils.h ACPICA: Linuxize: Reduce divergences for 20150410 release. 2015-04-14 14:51:50 +02:00
amlcode.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
amlresrc.h ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsargs.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dscontrol.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsfield.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsinit.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsmethod.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsmthdat.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsobject.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dsopcode.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
dsutils.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dswexec.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dswload.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dswload2.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dswscope.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
dswstate.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evevent.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evglock.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evgpe.c ACPICA: Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix 2 issues for the current GPE APIs 2015-02-05 15:34:51 +01:00
evgpeblk.c ACPICA: Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix 2 issues for the current GPE APIs 2015-02-05 15:34:51 +01:00
evgpeinit.c ACPICA: Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix 2 issues for the current GPE APIs 2015-02-05 15:34:51 +01:00
evgpeutil.c ACPICA: Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix 2 issues for the current GPE APIs 2015-02-05 15:34:51 +01:00
evhandler.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evmisc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evregion.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
evrgnini.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evsci.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
evxface.c ACPICA: Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix 2 issues for the current GPE APIs 2015-02-05 15:34:51 +01:00
evxfevnt.c ACPICA: Events: Add support to return both enable/status register values for GPE and fixed event. 2015-04-14 14:51:52 +02:00
evxfgpe.c ACPICA: Events: Enable APIs to allow interrupt/polling adaptive request based GPE handling model 2015-02-05 15:34:51 +01:00
evxfregn.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exconfig.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exconvrt.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
excreate.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exdebug.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exdump.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
exfield.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exfldio.c ACPICA: Utilities: Cleanup to convert physical address printing formats. 2015-04-14 14:51:51 +02:00
exmisc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exmutex.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exnames.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exoparg1.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exoparg2.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exoparg3.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exoparg6.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exprep.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exregion.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
exresnte.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exresolv.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exresop.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exstore.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exstoren.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exstorob.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exsystem.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
exutils.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwacpi.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwesleep.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwgpe.c ACPICA: Events: Add support to return both enable/status register values for GPE and fixed event. 2015-04-14 14:51:52 +02:00
hwpci.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwregs.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwsleep.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwtimer.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwvalid.c ACPICA: Utilities: Cleanup to convert physical address printing formats. 2015-04-14 14:51:51 +02:00
hwxface.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
hwxfsleep.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsaccess.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsalloc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsarguments.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsconvert.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsdump.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
nsdumpdv.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nseval.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsinit.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsload.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsnames.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsobject.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsparse.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nspredef.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsprepkg.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsrepair.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsrepair2.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nssearch.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsutils.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nswalk.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsxfeval.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsxfname.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
nsxfobj.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psargs.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psloop.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psobject.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psopcode.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psopinfo.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psparse.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psscope.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
pstree.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psutils.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
pswalk.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
psxface.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsaddr.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rscalc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rscreate.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsdump.c ACPICA: Linuxize: Reduce divergences for 20150410 release. 2015-04-14 14:51:50 +02:00
rsdumpinfo.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsinfo.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsio.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsirq.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rslist.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsmemory.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsmisc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsserial.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsutils.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
rsxface.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
tbdata.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
tbfadt.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
tbfind.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
tbinstal.c ACPICA: Tables: Don't release ACPI_MTX_TABLES in acpi_tb_install_standard_table(). 2015-04-14 14:51:52 +02:00
tbprint.c ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-04-14 14:51:51 +02:00
tbutils.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
tbxface.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
tbxfload.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
tbxfroot.c ACPICA: Tables: Change acpi_find_root_pointer() to use acpi_physical_address. 2015-04-14 14:51:50 +02:00
utaddress.c ACPICA: Utilities: Cleanup to convert physical address printing formats. 2015-04-14 14:51:51 +02:00
utalloc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utbuffer.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utcache.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utcopy.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utdebug.c kernel.h: remove ancient __FUNCTION__ hack 2015-02-12 18:54:13 -08:00
utdecode.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utdelete.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
uterror.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
uteval.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utexcep.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utfileio.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utglobal.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
uthex.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utids.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utinit.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utlock.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utmath.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utmisc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utmutex.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utobject.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utosi.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utownerid.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utpredef.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utprint.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utresrc.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utstate.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utstring.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
uttrack.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utuuid.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utxface.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utxferror.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utxfinit.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00
utxfmutex.c ACPICA: Update Copyright headers to 2015 2015-02-05 15:31:43 +01:00