ACPI: PM: s2idle: Invert Microsoft UUID entry and exit
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 10 Aug 2021 01:40:04 +0000 (20:40 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 16 Aug 2021 16:28:12 +0000 (18:28 +0200)
commit4753b46e16073c3100551a61024989d50f5e4874
tree51c154f2bec84b3879c21d29985efe2e62736c60
parent7c60610d476766e128cc4284bb6349732cbd6606
ACPI: PM: s2idle: Invert Microsoft UUID entry and exit

It was reported by a user with a Dell m15 R5 (5800H) that
the keyboard backlight was turning on when entering suspend
and turning off when exiting (the opposite of how it should be).

The user bisected it back to commit 5dbf50997578 ("ACPI: PM:
s2idle: Add support for new Microsoft UUID").  Previous to that
commit the LEDs didn't turn off at all.  Confirming in the spec,
these were reversed when introduced.

Fix them to match the spec.

BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1230#note_1021836
Fixes: 5dbf50997578 ("ACPI: PM: s2idle: Add support for new Microsoft UUID")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/s2idle.c