]> git.baikalelectronics.ru Git - 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:14:14 +0000 (13:14 +0100)
commit706a57396c91188b4de6d7f83429e8be2d0b4232
treeb1d5fa06faa535ea9c780330641820ebed22bb70
parent9a768783fe1b3562af1a3c09d3b0fc2102dafc31
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: 345e1c654fd0 ("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