]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: asus-wmi: Increase FAN_CURVE_BUF_LEN to 32
authorLuke D. Jones <luke@ljones.dev>
Sun, 28 Aug 2022 07:46:38 +0000 (19:46 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:43:49 +0000 (12:43 +0200)
commit0b38a5072464b970319367899e97655389b7bde0
tree6a1c2243bb4e898d1b27a4b82d58785481a54337
parentfe5872fd168460de8077decffe6adddb2c71b4e6
platform/x86: asus-wmi: Increase FAN_CURVE_BUF_LEN to 32

[ Upstream commit 5542dfc582f4a925f67bbfaf8f62ca83506032ae ]

Fix for TUF laptops returning with an -ENOSPC on calling
asus_wmi_evaluate_method_buf() when fetching default curves. The TUF method
requires at least 32 bytes space.

This also moves and changes the pr_debug() in fan_curve_check_present() to
pr_warn() in fan_curve_get_factory_default() so that there is at least some
indication in logs of why it fails.

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20220828074638.5473-1-luke@ljones.dev
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/asus-wmi.c