]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: x86-android-tablets: Workaround Lenovo Yoga Tablet 2 830/1050 poweroff...
authorHans de Goede <hdegoede@redhat.com>
Wed, 23 Feb 2022 13:31:52 +0000 (14:31 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 2 Mar 2022 10:43:45 +0000 (11:43 +0100)
commit8d54019f2651a73faa216da786c36084d17f7999
tree7c1e0e1cb9678f7ed787a86f6de644f846b249de
parent13367ba80f5147297933ec45f23bf8bfd4b50c17
platform/x86: x86-android-tablets: Workaround Lenovo Yoga Tablet 2 830/1050 poweroff hang

These tablets' DSDT does not set acpi_gbl_reduced_hardware, so
acpi_power_off gets used as pm_power_off handler. Not setting
acpi_gbl_reduced_hardware may very well be correct for these tablets,
but acpi_power_off is broken on them.

Using acpi_power_off causes "poweroff" to hang hard. Requiring pressing
the powerbutton for 30 seconds *twice* followed by a normal 3 second
press to recover.

Avoid this by overriding the global pm_power_off handler to do
an EFI poweroff, which does work, instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220223133153.730337-5-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c