platform/x86: acer-wmi: Add ACER_CAP_SET_FUNCTION_MODE capability flag
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Oct 2020 18:56:27 +0000 (20:56 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 28 Oct 2020 11:57:34 +0000 (12:57 +0100)
commit82cb8a5c395ea5be20e0fe31a8fe84380a502ca5
treea6d5e2f3e2eae2232f3075245404d269a0d1d276
parent39aa009bb66f9d5fbd1e58ca4aa03d6e6f2c9915
platform/x86: acer-wmi: Add ACER_CAP_SET_FUNCTION_MODE capability flag

Not all devices supporting WMID_GUID3 support the wmid3_set_function_mode()
call, leading to errors like these:

[   60.138358] acer_wmi: Enabling RF Button failed: 0x1 - 0xff
[   60.140036] acer_wmi: Enabling Launch Manager failed: 0x1 - 0xff

Add an ACER_CAP_SET_FUNCTION_MODE capability flag, so that these calls
can be disabled through the new force_caps mechanism.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20201019185628.264473-5-hdegoede@redhat.com
drivers/platform/x86/acer-wmi.c