]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
platform/x86: thinkpad_acpi: check dytc version for lapmode sysfs
authorMark Pearson <markpearson@lenovo.com>
Thu, 11 Mar 2021 17:48:43 +0000 (12:48 -0500)
committerHans de Goede <hdegoede@redhat.com>
Thu, 18 Mar 2021 12:13:29 +0000 (13:13 +0100)
commit0b4f5c95fba2ec004960e2bcf849548a863f7495
treede0482f8f90af8f43772238e695e7833f5002576
parent309d984bcfcaceb39edf1835f7e378e4192e7a21
platform/x86: thinkpad_acpi: check dytc version for lapmode sysfs

Lenovo platforms with DYTC versions earlier than version 5 don't set
the lapmode interface correctly, causing issues with thermald on
older platforms.

Add checking to only create the dytc_lapmode interface for version
5 and later.

Fixes: 1ac09656bded ("platform/x86: thinkpad_acpi: Add palm sensor support")
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20210311174843.3161-1-markpearson@lenovo.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c