platform/x86: thinkpad-acpi: Add support for automatic mode transitions
authorMark Pearson <markpearson@lenovo.com>
Fri, 3 Jun 2022 17:02:10 +0000 (13:02 -0400)
committerHans de Goede <hdegoede@redhat.com>
Wed, 22 Jun 2022 09:49:40 +0000 (11:49 +0200)
commit46dcbc61b739b0822855875e7dd8d8f471f50253
tree74e7df93d770df4b806ceef8f41c4d29bf0f56d1
parent6fe391dd5d87cb166bccc66dfb603e1f3e41db5a
platform/x86: thinkpad-acpi: Add support for automatic mode transitions

Some AMD Thinkpads support automatic mode transitions.  The actual
transition logic doesn't live in the `thinkpad_acpi` driver. The events
to activate this logic come from this driver though.

Populate these events when switching PSC power modes.

Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20220603170212.164963-2-markpearson@lenovo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c