platform/x86: wmi: Use FW_BUG when warning about missing control methods
authorArmin Wolf <W_Armin@gmx.de>
Tue, 6 Feb 2024 22:04:45 +0000 (23:04 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 7 Feb 2024 13:51:10 +0000 (15:51 +0200)
commitd0c595a11785573aad3b9e32ae293c48757eceff
treee00ea189cbb3d9eb8993414b0213974a040276f6
parent7f1b998a9108f7fd465039323d5fc2599b8cae77
platform/x86: wmi: Use FW_BUG when warning about missing control methods

A missing WQxx control method is a firmware bug and should be
marked as such using FW_BUG so that users know that the issue
is not a kernel issue.
Since get_subobj_info() might fail even if the control method
is present, we need to print the warning only if acpi_get_handle()
fails.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240206220447.3102-2-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/wmi.c