linux/drivers/acpi/acpica
Hans de Goede e7c2c3c909 ACPICA: Remove calling of _STA from acpi_get_object_info()
As the documentatuon above its declaration indicates, acpi_get_object_info()
is intended for early probe usage and as such should not call any methods
which may rely on op_regions, before this commit it was also calling _STA,
which on some systems does rely on op_regions.

Calling _STA before things are ready leads to errors such as these
(under Linux, on some hardware):

[    0.123579] ACPI Error: No handler for Region [ECRM] (00000000ba9edc4c)
               [generic_serial_bus] (20170831/evregion-166)
[    0.123601] ACPI Error: Region generic_serial_bus (ID=9) has no handler
               (20170831/exfldio-299)
[    0.123618] ACPI Error: Method parse/execution failed
               \_SB.I2C1.BAT1._STA, AE_NOT_EXIST (20170831/psparse-550)

End 2015 support for the _SUB method was removed for exactly the same
reason. Removing current_status from struct acpi_device_info only has a limited
impact. Within ACPICA it is only used by 2 debug messages, both
of which are modified to no longer print it with this commit.

Outside of ACPICA, there was one user in Linux, which has been patched to
no longer use current_status in Torvald's current master.

I've not checked if free_BSD or others are using the current_status field.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2018-03-18 18:52:00 +01:00
..
acapps.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
accommon.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acconvert.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acdebug.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acdispat.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acevents.h ACPICA: Events: Dispatch GPEs after enabling for the first time 2018-03-18 18:52:00 +01:00
acglobal.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
achware.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acinterp.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
aclocal.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acmacros.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acnamesp.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acobject.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acopcode.h ACPICA: Revert "Fix for implicit result conversion for the To____ functions" 2018-02-21 23:51:08 +01:00
acparser.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acpredef.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acresrc.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acstruct.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
actables.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
acutils.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
amlcode.h ACPICA: Revert "Fix for implicit result conversion for the To____ functions" 2018-02-21 23:51:08 +01:00
amlresrc.h ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbcmds.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbconvert.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbdisply.c ACPICA: Remove calling of _STA from acpi_get_object_info() 2018-03-18 18:52:00 +01:00
dbexec.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbfileio.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbhistry.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbinput.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbmethod.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbnames.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbobject.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbstats.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbtest.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dbxface.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsargs.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
dscontrol.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsdebug.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsfield.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsinit.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsmethod.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsmthdat.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsobject.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dsopcode.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
dspkginit.c ACPICA: Add option to disable Package object name resolution errors 2018-02-21 23:51:08 +01:00
dsutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dswexec.c ACPICA: Integrate package handling with module-level code 2018-02-21 23:51:08 +01:00
dswload2.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dswload.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
dswscope.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
dswstate.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evevent.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evglock.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evgpe.c ACPICA: Events: Add parallel GPE handling support to fix potential redundant _Exx evaluations 2018-03-18 18:51:59 +01:00
evgpeblk.c ACPICA: Events: Dispatch GPEs after enabling for the first time 2018-03-18 18:52:00 +01:00
evgpeinit.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evgpeutil.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evhandler.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evmisc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evregion.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evrgnini.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evsci.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evxface.c ACPICA: Events: Dispatch GPEs after enabling for the first time 2018-03-18 18:52:00 +01:00
evxfevnt.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
evxfgpe.c ACPICA: Events: Dispatch GPEs after enabling for the first time 2018-03-18 18:52:00 +01:00
evxfregn.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exconcat.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exconfig.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exconvrt.c ACPICA: Revert "Fix for implicit result conversion for the To____ functions" 2018-02-21 23:51:08 +01:00
excreate.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exdebug.c ACPICA: AML Debug Object: Don't ignore output of zero-length strings 2018-03-18 18:52:00 +01:00
exdump.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exfield.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exfldio.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exmisc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exmutex.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exnames.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
exoparg1.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exoparg2.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exoparg3.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exoparg6.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exprep.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exregion.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exresnte.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exresolv.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exresop.c ACPICA: Revert "Fix for implicit result conversion for the To____ functions" 2018-02-21 23:51:08 +01:00
exstore.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exstoren.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exstorob.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exsystem.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
extrace.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
exutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwacpi.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwesleep.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwgpe.c ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume 2018-03-18 18:51:59 +01:00
hwpci.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwregs.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwsleep.c ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume 2018-03-18 18:51:59 +01:00
hwtimer.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwvalid.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwxface.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
hwxfsleep.c ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume 2018-03-18 18:51:59 +01:00
Makefile Merge branch 'acpica' 2017-11-13 01:36:58 +01:00
nsaccess.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsalloc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsarguments.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsconvert.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsdump.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsdumpdv.c ACPICA: Remove calling of _STA from acpi_get_object_info() 2018-03-18 18:52:00 +01:00
nseval.c ACPICA: acpi: acpica: fix acpi operand cache leak in nseval.c 2018-03-18 18:51:59 +01:00
nsinit.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
nsload.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsnames.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
nsobject.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsparse.c ACPICA: Integrate package handling with module-level code 2018-02-21 23:51:08 +01:00
nspredef.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsprepkg.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsrepair2.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsrepair.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nssearch.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nswalk.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsxfeval.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
nsxfname.c ACPICA: Remove calling of _STA from acpi_get_object_info() 2018-03-18 18:52:00 +01:00
nsxfobj.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
psargs.c ACPICA: Fix memory leak on unusual memory leak 2018-03-18 18:52:00 +01:00
psloop.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
psobject.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
psopcode.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
psopinfo.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
psparse.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
psscope.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
pstree.c ACPICA: Integrate package handling with module-level code 2018-02-21 23:51:08 +01:00
psutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
pswalk.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
psxface.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsaddr.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rscalc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rscreate.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsdump.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsdumpinfo.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsinfo.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsio.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsirq.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rslist.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsmemory.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsmisc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsserial.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
rsxface.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbdata.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbfadt.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbfind.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbinstal.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbprint.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbutils.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbxface.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbxfload.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
tbxfroot.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utaddress.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utalloc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utascii.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utbuffer.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utcache.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
utcopy.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utdebug.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utdecode.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utdelete.c ACPICA: Update for some debug output. No functional change 2018-02-21 23:51:08 +01:00
uterror.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
uteval.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utexcep.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utglobal.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
uthex.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utids.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utinit.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utlock.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utmath.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utmisc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utmutex.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utnonansi.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utobject.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utosi.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utownerid.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utpredef.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utprint.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utresdecode.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utresrc.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utstate.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utstring.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utstrsuppt.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utstrtoul64.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
uttrack.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utuuid.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utxface.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utxferror.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utxfinit.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00
utxfmutex.c ACPICA: All acpica: Update copyrights to 2018 2018-02-06 10:31:20 +01:00