diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-07-08 15:14:11 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-07-10 17:41:05 +0200 |
commit | 4ce8f4c2027db46299b450b28e9e116aaf00a757 (patch) | |
tree | 33cdfab24975a5eb0a1ed598233ef25688fce69f /drivers/dax | |
parent | platform/x86: gigabyte-wmi: add support for B660I AORUS PRO DDR4 (diff) | |
download | linux-4ce8f4c2027db46299b450b28e9e116aaf00a757.tar.xz linux-4ce8f4c2027db46299b450b28e9e116aaf00a757.zip |
platform/x86: x86-android-tablets: Fix Lenovo Yoga Tablet 2 830/1050 poweroff again
Commit 98f30d0ecf79 ("ACPI: power: Switch to sys-off handler API")
switched the ACPI sleep code from directly setting the old global
pm_power_off handler to using the new register_sys_off_handler()
mechanism with a priority of SYS_OFF_PRIO_FIRMWARE.
This is a problem in special cases where the old global pm_power_off
handler later gets overwritten, such as the Lenovo Tab2 poweroff bugfix
in x86-android-tablets. The old global pm_power_off handler gets run
with a priority of SYS_OFF_PRIO_DEFAULT which is lower then
SYS_OFF_PRIO_FIRMWARE, causing the troublesome ACPI poweroff (which
freezes the system) to run first.
Switch the registering of lenovo_yoga_tab2_830_1050_power_off over to
register_sys_off_handler() with a priority of SYS_OFF_PRIO_FIRMWARE + 1
so that it will run before acpi_power_off() to fix this.
Fixes: 98f30d0ecf79 ("ACPI: power: Switch to sys-off handler API")
Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220708131412.81078-2-hdegoede@redhat.com
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions