android_kernel_samsung_a7y1.../drivers/platform
Hans de Goede 4846ff9c5c platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes
commit 133b2acee3871ae6bf123b8fe34be14464aa3d2c upstream.

At least on the HP Envy x360 15-cp0xxx model the WMI interface
for HPWMI_FEATURE2_QUERY requires an outsize of at least 128 bytes,
otherwise it fails with an error code 5 (HPWMI_RET_INVALID_PARAMETERS):

Dec 06 00:59:38 kernel: hp_wmi: query 0xd returned error 0x5

We do not care about the contents of the buffer, we just want to know
if the HPWMI_FEATURE2_QUERY command is supported.

This commits bumps the buffer size, fixing the error.

Fixes: 8a1513b4932 ("hp-wmi: limit hotkey enable")
Cc: stable@vger.kernel.org
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1520703
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:22:28 +02:00
..
chrome platform/chrome: cros_ec_proto: check for NULL transfer function 2020-04-06 19:02:11 +02:00
goldfish A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
olpc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
x86 platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes 2020-04-07 13:22:28 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30