]> git.karo-electronics.de Git - karo-tx-linux.git/commit
platform/x86: fujitsu-laptop: do not update ACPI device power status
authorMichał Kępień <kernel@kempniu.pl>
Fri, 16 Jun 2017 04:40:56 +0000 (06:40 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 1 Jul 2017 03:13:05 +0000 (20:13 -0700)
commit1c1946269f6a7b3c96a7164f0c9b48854ac8a6e2
treed021c1dac7f260e08881b484414d90c5e7d245c5
parentc1f51f1c4906f2551e21451228dcbb3b9dfc7008
platform/x86: fujitsu-laptop: do not update ACPI device power status

Calling acpi_bus_update_power() for ACPI devices FUJ02B1 and FUJ02E3 is
pointless as they are not power manageable (neither _PS0 nor _PR0 is
defined for any of them), which causes their power state to be inherited
from their parent devices.  Given the ACPI paths of these two devices
(\_SB.PCI0.LPCB.FJEX, \_SB.FEXT), their parent devices are also not
power manageable.  These parent devices will thus have their power state
initialized to ACPI_STATE_D0, which in turn causes the power state for
both FUJ02B1 and FUJ02E3 to always be ACPI_STATE_D0 ("on").

Remove relevant acpi_bus_update_power() calls along with parts of debug
messages that they were supposed to have an effect on.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c