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)
commitbf8fd1a9736eaff5a5b823415e5a0d165a42e5d6
tree7c1e0e1cb9678f7ed787a86f6de644f846b249de
parent67dfc2b441b4b724acb74361e9e2e23506721e4f
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