Input: xpad - fix support for some third-party controllers
authorVicki Pfau <vi@endrift.com>
Fri, 7 Jul 2023 17:34:41 +0000 (10:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Jul 2023 23:53:49 +0000 (16:53 -0700)
commit05e6329443734a2a0aefb845d74375081d6626b6
treed152a776385041b38d2a1bcf4bd573c3f3077c72
parent1680ac7a5ad578d7acf819912557ceea4b4a5a88
Input: xpad - fix support for some third-party controllers

Some third-party controllers, such as the HORPIAD FPS for Nintendo Switch
and Gamesir-G3w, require a specific packet that the first-party XInput
driver sends before it will start sending reports. It's not currently known
what this packet does, but since the first-party driver always sends it's
unlikely that this could cause issues with existing controllers.

Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Vicki Pfau <vi@endrift.com>
Link: https://lore.kernel.org/r/20230607012812.379640-2-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c