]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Fix incorrect use of platform profile on AMD platforms
authorMark Pearson <markpearson@lenovo.com>
Thu, 27 Jan 2022 19:03:58 +0000 (14:03 -0500)
committerHans de Goede <hdegoede@redhat.com>
Tue, 1 Feb 2022 14:37:00 +0000 (15:37 +0100)
commit692a7256b6239bcbf8e2bbdd15945e54a529e2d0
tree006e4f085f4138fc3956daebcf22db8ea0f519b5
parent2c5a25510164397cf2852f8825ef19672f90e8d3
platform/x86: thinkpad_acpi: Fix incorrect use of platform profile on AMD platforms

Lenovo AMD based platforms have been offering platform_profiles but they
are not working correctly. This is because the mode we are using on the
Intel platforms (MMC) is not available on the AMD platforms.

This commit adds checking of the functional capabilities returned by the
BIOS to confirm if MMC is supported or not. Profiles will not be
available if the platform is not MMC capable.

I'm investigating and working on an alternative for AMD platforms but
that is still work-in-progress.

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20220127190358.4078-1-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