Re: [PATCH] platform/x86/intel: hid: Add DMI switches allow list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 01, 2021 at 12:09:32PM +0200, Hans de Goede wrote:
> From: José Expósito <jose.exposito89@xxxxxxxxx>
> 
> commit b201cb0ebe87b209e252d85668e517ac1929e250 upstream.
> 
> Some devices, even non convertible ones, can send incorrect
> SW_TABLET_MODE reports.
> 
> Add an allow list and accept such reports only from devices in it.
> 
> Bug reported for Dell XPS 17 9710 on:
> https://gitlab.freedesktop.org/libinput/libinput/-/issues/662
> 
> Fixes: ac32bae00083 ("platform/x86: intel-hid: Add alternative method to enable switches")
> Depends-on: 153cca9caa81 ("platform/x86: Add and use a dual_accel_detect() helper")
> Reported-by: Tobias Gurtzick <magic@xxxxxxxxxxxxxxx>
> Suggested-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> Tested-by: Tobias Gurtzick <magic@xxxxxxxxxxxxxxx>
> Signed-off-by: José Expósito <jose.exposito89@xxxxxxxxx>
> Link: https://lore.kernel.org/r/20210920160312.9787-1-jose.exposito89@xxxxxxxxx
> [hdegoede@xxxxxxxxxx: Check dmi_switches_auto_add_allow_list only once]
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  drivers/platform/x86/intel-hid.c | 27 ++++++++++++++++++++++-----
>  1 file changed, 22 insertions(+), 5 deletions(-)

Now queued up, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux