Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: xpad - quirk all PDP Xbox One gamepads

Since we continue to find tons of new variants [0,1,2,3,4,5,6] that
need the PDP quirk, let's just quirk all devices from PDP.

[0]: https://github.com/paroj/xpad/pull/104
[1]: https://github.com/paroj/xpad/pull/105
[2]: https://github.com/paroj/xpad/pull/108
[3]: https://github.com/paroj/xpad/pull/109
[4]: https://github.com/paroj/xpad/pull/112
[5]: https://github.com/paroj/xpad/pull/115
[6]: https://github.com/paroj/xpad/pull/116

Fixes: e5c9c6a885fa ("Input: xpad - add support for PDP Xbox One controllers")
Cc: stable@vger.kernel.org
Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Cameron Gutman and committed by
Dmitry Torokhov
a6754fae 5a6dab15

+6 -10
+6 -10
drivers/input/joystick/xpad.c
··· 480 480 }; 481 481 482 482 /* 483 - * This packet is required for some of the PDP pads to start 483 + * This packet is required for most (all?) of the PDP pads to start 484 484 * sending input reports. These pads include: (0x0e6f:0x02ab), 485 - * (0x0e6f:0x02a4). 485 + * (0x0e6f:0x02a4), (0x0e6f:0x02a6). 486 486 */ 487 487 static const u8 xboxone_pdp_init1[] = { 488 488 0x0a, 0x20, 0x00, 0x03, 0x00, 0x01, 0x14 489 489 }; 490 490 491 491 /* 492 - * This packet is required for some of the PDP pads to start 492 + * This packet is required for most (all?) of the PDP pads to start 493 493 * sending input reports. These pads include: (0x0e6f:0x02ab), 494 - * (0x0e6f:0x02a4). 494 + * (0x0e6f:0x02a4), (0x0e6f:0x02a6). 495 495 */ 496 496 static const u8 xboxone_pdp_init2[] = { 497 497 0x06, 0x20, 0x00, 0x02, 0x01, 0x00 ··· 527 527 XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_init), 528 528 XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_init), 529 529 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init), 530 - XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init1), 531 - XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init2), 532 - XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init1), 533 - XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init2), 534 - XBOXONE_INIT_PKT(0x0e6f, 0x02a6, xboxone_pdp_init1), 535 - XBOXONE_INIT_PKT(0x0e6f, 0x02a6, xboxone_pdp_init2), 530 + XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_init1), 531 + XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_init2), 536 532 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init), 537 533 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init), 538 534 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),