]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: hp-wmi: Setting thermal profile fails with 0x06
authorJorge Lopez <jorge.lopez2@hp.com>
Mon, 12 Sep 2022 19:26:03 +0000 (14:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:18 +0000 (09:58 +0200)
commit14992b9f184baee401a7fb6bd0ce5ceae7d3a307
treed898625be0998ad09dfb15a9886b27618c9c45fb
parentc1f00121bf317f6339f2c498d691e3403fad2ba1
platform/x86: hp-wmi: Setting thermal profile fails with 0x06

[ Upstream commit 00b1829294b7c88ecba92c661fbe6fe347b364d2 ]

Error 0x06 (invalid command parameter) is reported by hp-wmi module
when reading the current thermal profile and then proceed to set it
back. The failing condition occurs in Linux NixOS after user
configures the thermal profile to ‘quiet mode’ in Windows.  Quiet Fan
Mode is supported in Windows but was not supported in hp-wmi module.

This fix adds support for PLATFORM_PROFILE_QUIET in hp-wmi module for
HP notebooks other than HP Omen series.  Quiet thermal profile is not
supported in HP Omen series notebooks.

Signed-off-by: Jorge Lopez <jorge.lopez2@hp.com>
Link: https://lore.kernel.org/r/20220912192603.4001-1-jorge.lopez2@hp.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/hp-wmi.c