]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal/int340x_thermal: fix mode setting
authorMatthew Garrett <matthewgarrett@google.com>
Wed, 10 Oct 2018 08:30:07 +0000 (01:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:15:01 +0000 (09:15 +0200)
commit637f86d25097b565a5c9a17094bc4d06df3dc1dc
treeedcb97d400b1a8f59613ebbb8aa19ea13d4b099b
parentf37079c7dc6aaa6fd392c1f5426f77c71361f15b
thermal/int340x_thermal: fix mode setting

[ Upstream commit 396ee4d0cd52c13b3f6421b8d324d65da5e7e409 ]

int3400 only pushes the UUID into the firmware when the mode is flipped
to "enable". The current code only exposes the mode flag if the firmware
supports the PASSIVE_1 UUID, which not all machines do. Remove the
restriction.

Signed-off-by: Matthew Garrett <mjg59@google.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/int340x_thermal/int3400_thermal.c