platform/x86: thinkpad_acpi: Fix profile mode display in AMT mode
authorMark Pearson <mpearson-lenovo@squebb.ca>
Thu, 12 Jan 2023 22:12:28 +0000 (17:12 -0500)
committerHans de Goede <hdegoede@redhat.com>
Fri, 13 Jan 2023 10:40:30 +0000 (11:40 +0100)
commitfde5f74ccfc771941b018b5415fa9664426e10ad
tree0b99bb0a9625e7b4161586c164d562e8531ad7ff
parentcf5ac2d45f6e4d11ad78e7b10ae9a4121ba5e995
platform/x86: thinkpad_acpi: Fix profile mode display in AMT mode

Recently AMT mode was enabled (somewhat unexpectedly) on the Lenovo
Z13 platform. The FW is advertising it is available and the driver tries
to use it - unfortunately it reports the profile mode incorrectly.

Note, there is also some extra work needed to enable the dynamic aspect
of AMT support that I will be following up with; but more testing is
needed first. This patch just fixes things so the profiles are reported
correctly.

Link: https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/issues/115
Fixes: 46dcbc61b739 ("platform/x86: thinkpad-acpi: Add support for automatic mode transitions")

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20230112221228.490946-1-mpearson-lenovo@squebb.ca
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c