]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45355eba8dd0341860b6c2f94255fc890b4a9ef0
tree74e7df93d770df4b806ceef8f41c4d29bf0f56d1
parenta5accc2175585dacf4fefe81562eb64882c895c2
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