Jack Greiner
e6e885cb9f
Input: xpad - add support for wooting two he (arm)
...
BugLink: https://bugs.launchpad.net/bugs/2109640
commit 222f3390c15c4452a9f7e26f5b7d9138e75d00d5 upstream.
Add Wooting Two HE (ARM) to the list of supported devices.
Signed-off-by: Jack Greiner <jack@emoss.org >
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com >
Link: https://lore.kernel.org/r/20250107192830.414709-3-rojtberg@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-05-19 12:48:18 +02:00
Matheos Mattsson
5660957e5e
Input: xpad - add support for Nacon Evol-X Xbox One Controller
...
BugLink: https://bugs.launchpad.net/bugs/2109640
commit 3a6e5ed2372bcb2a3c554fda32419efd91ff9b0c upstream.
Add Nacon Evol-X Xbox One to the list of supported devices.
Signed-off-by: Matheos Mattsson <matheos.mattsson@gmail.com >
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com >
Link: https://lore.kernel.org/r/20250107192830.414709-9-rojtberg@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-05-19 12:48:18 +02:00
Leonardo Brondani Schenkel
2510b021eb
Input: xpad - improve name of 8BitDo controller 2dc8:3106
...
BugLink: https://bugs.launchpad.net/bugs/2109640
commit 66372fa9936088bf29c4f47907efeff03c51a2c8 upstream.
8BitDo Pro 2 Wired Controller shares the same USB identifier
(2dc8:3106) as a different device, so amend name to reflect that and
reduce confusion as the user might think the controller was misdetected.
Because Pro 2 Wired will not work in XTYPE_XBOXONE mode (button presses
won't register), tagging it as XTYPE_XBOX360 remains appropriate.
Signed-off-by: Leonardo Brondani Schenkel <leonardo@schenkel.net >
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com >
Link: https://lore.kernel.org/r/20250107192830.414709-2-rojtberg@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-05-19 12:48:18 +02:00
Pierre-Loup A. Griffais
5179f73c24
Input: xpad - add QH Electronics VID/PID
...
BugLink: https://bugs.launchpad.net/bugs/2109640
commit 92600f3295ff571890c981d886c6544030cc05f3 upstream.
Add support for QH Electronics Xbox 360-compatible controller
Signed-off-by: Pierre-Loup A. Griffais <pgriffais@valvesoftware.com >
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20250116012518.3476735-1-vi@endrift.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-05-19 12:48:18 +02:00
Nilton Perim Neto
18d56337a5
Input: xpad - add unofficial Xbox 360 wireless receiver clone
...
BugLink: https://bugs.launchpad.net/bugs/2109640
commit e4940fe6322c851659c17852b671c6e7b1aa9f56 upstream.
Although it mimics the Microsoft's VendorID, it is in fact a clone.
Taking into account that the original Microsoft Receiver is not being
manufactured anymore, this drive can solve dpad issues encontered by
those who still use the original 360 Wireless controller
but are using a receiver clone.
Signed-off-by: Nilton Perim Neto <niltonperimneto@gmail.com >
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com >
Link: https://lore.kernel.org/r/20250107192830.414709-12-rojtberg@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-05-19 12:48:18 +02:00
Nicolas Nobelis
de24dfaa9d
Input: xpad - add support for Nacon Pro Compact
...
BugLink: https://bugs.launchpad.net/bugs/2109640
commit 1bba29603a2812e7b3dbb4ec1558ecb626ee933e upstream.
Add Nacon Pro Compact to the list of supported devices. These are the
ids of the "Colorlight" variant. The buttons, sticks and vibrations
work. The decorative LEDs on the other hand do not (they stay turned
off).
Signed-off-by: Nicolas Nobelis <nicolas@nobelis.eu >
Link: https://lore.kernel.org/r/20241116182419.33833-1-nicolas@nobelis.eu
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-05-19 12:48:18 +02:00
Stefan Kerkmann
993c32a48a
Input: xpad - add support for 8BitDo Ultimate 2C Wireless Controller
...
BugLink: https://bugs.launchpad.net/bugs/2099996
[ Upstream commit ea330429a04b383bd319c66261a5eca4798801e4 ]
This XBOX360 compatible gamepad uses the new product id 0x310a under the
8BitDo's vendor id 0x2dc8. The change was tested using the gamepad in a
wired and wireless dongle configuration.
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de >
Link: https://lore.kernel.org/r/20241015-8bitdo_2c_ultimate_wireless-v1-1-9c9f9db2e995@pengutronix.de
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Koichiro Den <koichiro.den@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-03-14 14:30:07 +01:00
Brenton Simpson
4049a5b2b3
Input: xpad - sort xpad_device by vendor and product ID
...
BugLink: https://bugs.launchpad.net/bugs/2099996
[ Upstream commit 18970d4f6317a3595cc592c3c7815f63d1818932 ]
This helps making sure there are no duplicate entries in the tables.
Signed-off-by: Brenton Simpson <appsforartists@google.com >
Link: https://lore.kernel.org/r/20240130231903.293265-1-appsforartists@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Stable-dep-of: ea330429a04b ("Input: xpad - add support for 8BitDo Ultimate 2C Wireless Controller")
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Koichiro Den <koichiro.den@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2025-03-14 14:30:07 +01:00
John Edwards
03678e17ee
Input: xpad - add support for MSI Claw A1M
...
BugLink: https://bugs.launchpad.net/bugs/2097393
commit 22a18935d7d96bbb1a28076f843c1926d0ba189e upstream.
Add MSI Claw A1M controller to xpad_device match table when in xinput mode.
Add MSI VID as XPAD_XBOX360_VENDOR.
Signed-off-by: John Edwards <uejji@uejji.net >
Reviewed-by: Derek J. Clark <derekjohn.clark@gmail.com >
Reviewed-by: Christopher Snowhill <kode54@gmail.com >
Link: https://lore.kernel.org/r/20241010232020.3292284-4-uejji@uejji.net
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Koichiro Den <koichiro.den@canonical.com >
2025-02-14 15:50:49 +03:00
Luke D. Jones
65047f51eb
Input: xpad - add support for ASUS ROG RAIKIRI PRO
...
BugLink: https://bugs.launchpad.net/bugs/2078304
[ Upstream commit cee77149ebe9cd971ba238d87aa10e09bd98f1c9 ]
Add the VID/PID for ASUS ROG RAIKIRI PRO to the list of known devices.
Signed-off-by: Luke D. Jones <luke@ljones.dev >
Link: https://lore.kernel.org/r/20240607223722.1170776-1-luke@ljones.dev
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Portia Stephens <portia.stephens@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2024-09-27 11:14:57 +02:00
Vicki Pfau
e45e411162
Input: xpad - add support for ASUS ROG RAIKIRI
...
BugLink: https://bugs.launchpad.net/bugs/2071621
[ Upstream commit be81415a32ef6d8a8a85529fcfac03d05b3e757d ]
Add the VID/PID for ASUS ROG RAIKIRI to xpad_device and the VID to xpad_table
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20240404035345.159643-1-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Stefan Bader <stefan.bader@canonical.com >
2024-07-05 10:12:09 +02:00
Matt Scialabba
421d57c260
Input: xpad - add support for Snakebyte GAMEPADs
...
BugLink: https://bugs.launchpad.net/bugs/2065899
[ Upstream commit 81c32343d04f8ca974681d5fb5d939d2e1f58851 ]
Add Snakebyte GAMEPAD BASE X and Snakebyte GAMEPAD RGB X to the list
of supported devices.
Signed-off-by: Matt Scialabba <matt.git@fastmail.fm >
Link: https://lore.kernel.org/r/efbfb428-06b0-48f9-8701-db291c2a9d65@app.fastmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com >
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com >
2024-06-07 14:48:38 +02:00
Max Nguyen
dd50f771af
Input: xpad - add additional HyperX Controller Identifiers
...
Add additional HyperX device identifiers to xpad_device and xpad_table.
Suggested-by: Chris Toledanes<chris.toledanes@hp.com >
Reviewed-by: Carl Ng <carl.ng@hp.com >
Signed-off-by: Max Nguyen <maxwell.nguyen@hp.com >
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/44ad5ffa-76d8-4046-94ee-2ef171930ed2@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2024-03-03 14:46:20 -08:00
Brenton Simpson
80441f76ee
Input: xpad - add Lenovo Legion Go controllers
...
The Lenovo Legion Go is a handheld gaming system, similar to a Steam Deck.
It has a gamepad (including rear paddles), 3 gyroscopes, a trackpad,
volume buttons, a power button, and 2 LED ring lights.
The Legion Go firmware presents these controls as a USB hub with various
devices attached. In its default state, the gamepad is presented as an
Xbox controller connected to this hub. (By holding a combination of
buttons, it can be changed to use the older DirectInput API.)
This patch teaches the existing Xbox controller module `xpad` to bind to
the controller in the Legion Go, which enables support for the:
- directional pad,
- analog sticks (including clicks),
- X, Y, A, B,
- start and select (or menu and capture),
- shoulder buttons, and
- rumble.
The trackpad, touchscreen, volume controls, and power button are already
supported via existing kernel modules. Two of the face buttons, the
gyroscopes, rear paddles, and LEDs are not.
After this patch lands, the Legion Go will be mostly functional in Linux,
out-of-the-box. The various components of the USB hub can be synthesized
into a single logical controller (including the additional buttons) in
userspace with [Handheld Daemon](https://github.com/hhd-dev/hhd ), which
makes the Go fully functional.
Signed-off-by: Brenton Simpson <appsforartists@google.com >
Link: https://lore.kernel.org/r/20240118183546.418064-1-appsforartists@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2024-01-30 14:20:55 -08:00
Dmitry Torokhov
e2a2501af1
Merge branch 'next' into for-linus
...
Prepare input updates for 6.8 merge window.
2024-01-13 21:54:39 -08:00
Anshul Dalal
52c4e5985a
Input: driver for Adafruit Seesaw Gamepad
...
Adds a driver for a mini gamepad that communicates over i2c, the gamepad
has bidirectional thumb stick input and six buttons.
The gamepad chip utilizes the open framework from Adafruit called 'Seesaw'
to transmit the ADC data for the joystick and digital pin state for the
buttons. I have only implemented the functionality required to receive the
thumb stick and button state.
Steps in reading the gamepad state over i2c:
1. Reset the registers
2. Set the pin mode of the pins specified by the `BUTTON_MASK` to input
`BUTTON_MASK`: A bit-map for the six digital pins internally
connected to the joystick buttons.
3. Enable internal pullup resistors for the `BUTTON_MASK`
4. Bulk set the pin state HIGH for `BUTTON_MASK`
5. Poll the device for button and joystick state done by:
`seesaw_read_data(struct i2c_client *client, struct seesaw_data *data)`
Product page:
https://www.adafruit.com/product/5743
Arduino driver:
https://github.com/adafruit/Adafruit_Seesaw
Driver tested on RPi Zero 2W
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net >
Signed-off-by: Anshul Dalal <anshulusr@gmail.com >
Link: https://lore.kernel.org/r/20240106015111.882325-2-anshulusr@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2024-01-09 23:45:19 -08:00
Linus Walleij
7395de647e
Input: as5011 - convert to GPIO descriptor
...
This driver does not have any in-tree users but is passing a
legacy GPIO number through platform data.
Convert it to use a GPIO descriptor, new users or outoftree
users can easily be implemented using GPIO descriptor tables
or software nodes.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20231129-descriptors-input-v1-4-9433162914a3@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-12-13 21:26:13 -08:00
Luca Weiss
c3d1610345
Input: xpad - add Razer Wolverine V2 support
...
Add the VID and PID of Razer Wolverine V2 to xpad_device.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz >
Link: https://lore.kernel.org/r/20231125-razer-wolverine-v2-v1-1-979fe9f9288e@z3ntu.xyz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-12-12 19:24:02 -08:00
Christophe JAILLET
97a7d8950f
Input: xpad - remove usage of the deprecated ida_simple_xx() API
...
ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().
This is less verbose.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Link: https://lore.kernel.org/r/a3e30e30f18cc5d6f032c8013ce9d900c8e223e5.1702228806.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-12-11 18:52:09 -08:00
Marcus Folkesson
909484169a
Input: pxrc - simplify mutex handling with guard macro
...
Use the guard(mutex) macro for handle mutex lock/unlocks.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com >
Link: https://lore.kernel.org/r/20231202-pxrc-guard-v3-1-2ca8bc8cf689@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-12-09 22:25:23 -08:00
Dmitry Torokhov
cdd5b5a976
Merge branch 'next' into for-linus
...
Prepare input updates for 6.7 merge window.
2023-11-06 15:42:08 -08:00
Li Zetao
28d3fe3235
Input: walkera0701 - use module_parport_driver macro to simplify the code
...
Use the module_parport_driver macro to simplify the code, which is the
same as declaring with module_init() and module_exit().
Signed-off-by: Li Zetao <lizetao1@huawei.com >
Link: https://lore.kernel.org/r/20230815080107.1089401-1-lizetao1@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-10-29 02:56:46 +00:00
Matthias Berndt
a65cd7ef5a
Input: xpad - add PXN V900 support
...
Add VID and PID to the xpad_device table to allow driver to use the PXN
V900 steering wheel, which is XTYPE_XBOX360 compatible in xinput mode.
Signed-off-by: Matthias Berndt <matthias_berndt@gmx.de >
Link: https://lore.kernel.org/r/4932699.31r3eYUQgx@fedora
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-10-13 17:59:20 -07:00
Max Nguyen
e28a0974d7
Input: xpad - add HyperX Clutch Gladiate Support
...
Add HyperX controller support to xpad_device and xpad_table.
Suggested-by: Chris Toledanes <chris.toledanes@hp.com >
Reviewed-by: Carl Ng <carl.ng@hp.com >
Signed-off-by: Max Nguyen <maxwell.nguyen@hp.com >
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com >
Link: https://lore.kernel.org/r/20230906231514.4291-1-hphyperxdev@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-09-17 22:24:56 -07:00
Dmitry Torokhov
5050193628
Merge tag 'v6.4' into next
...
Sync up with mainline to bring in updates to shared infrastructure.
2023-07-17 09:20:46 -07:00
Jonathan Frederick
854d2233de
Input: xpad - add GameSir T4 Kaleid Controller support
...
Add VID and PID to the xpad_device table to allow driver
to use the GameSir T4 Kaleid Controller, which is
XTYPE_XBOX360 compatible in xinput mode.
Signed-off-by: Jonathan Frederick <doublej472@gmail.com >
Link: https://lore.kernel.org/r/ZKeKSbP3faIPv5jB@dbj-hp-flip
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-07-07 16:53:50 -07:00
Sam Lantinga
1dfd41115f
Input: xpad - add GameSir VID for Xbox One controllers
...
Signed-off-by: Sam Lantinga <slouken@libsdl.org >
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20230607012812.379640-3-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-07-07 16:53:50 -07:00
Vicki Pfau
05e6329443
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 >
2023-07-07 16:53:49 -07:00
Ismael Ferreras Morezuelas
feee70f456
Input: xpad - delete a Razer DeathAdder mouse VID/PID entry
...
While doing my research to improve the xpad device names I noticed
that the 1532:0037 VID/PID seems to be used by the DeathAdder 2013,
so that Razer Sabertooth instance looked wrong and very suspect to
me. I didn't see any mention in the official drivers, either.
After doing more research, it turns out that the xpad list
is used by many other projects (like Steam) as-is [1], this
issue was reported [2] and Valve/Sam Lantinga fixed it [3]:
[1]: https://github.com/libsdl-org/SDL/blob/dcc5eef0e2395854b254ea2873a4899edab347c6/src/joystick/controller_type.h#L251
[2]: https://steamcommunity.com/app/353380/discussions/0/1743392486228754770/
[3]: https://hg.libsdl.org/SDL/rev/29809f6f0271
(With multiple Internet users reporting similar issues, not linked here)
After not being able to find the correct VID/PID combination anywhere
on the Internet and not receiving any reply from Razer support I did
some additional detective work, it seems like it presents itself as
"Razer Sabertooth Gaming Controller (XBOX360)", code 1689:FE00.
Leaving us with this:
* Razer Sabertooth (1689:fe00)
* Razer Sabertooth Elite (24c6:5d04)
* Razer DeathAdder 2013 (1532:0037) [note: not a gamepad]
So, to sum things up; remove this conflicting/duplicate entry:
{ 0x1532, 0x0037, "Razer Sabertooth", 0, XTYPE_XBOX360 },
As the real/correct one is already present there, even if
the Internet as a whole insists on presenting it as the
Razer Sabertooth Elite, which (by all accounts) is not:
{ 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
Actual change in SDL2 referencing this kernel issue:
https://github.com/libsdl-org/SDL/commit/e5e54169754ca5d3e86339d968b20126d9da0a15
For more information of the device, take a look here:
https://github.com/xboxdrv/xboxdrv/pull/59
You can see a lsusb dump here: https://github.com/xboxdrv/xboxdrv/files/76581/Qa6dBcrv.txt
Fixes: f554f619b7 ("Input: xpad - sync device IDs with xboxdrv")
Signed-off-by: Ismael Ferreras Morezuelas <swyterzone@gmail.com >
Reviewed-by: Cameron Gutman <aicommander@gmail.com >
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/5c12dbdb-5774-fc68-5c58-ca596383663e@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-05-23 14:48:23 -07:00
Ismael Ferreras Morezuelas
9284d3b9a3
Input: xpad - spelling fixes for "Xbox"
...
The Linux kernel is notorious for misspelling X-Box, X-box, XBox or XBOX;
the official spelling is actually just Xbox. Plain and simple.
Tried to respect the existing notes but still following the style guide.
No functional changes intended. This only affects ancillary parts.
Signed-off-by: Ismael Ferreras Morezuelas <swyterzone@gmail.com >
Link: https://lore.kernel.org/r/401b1d94-1348-15fd-b48f-a80e8885c7a4@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-05-22 17:28:16 -07:00
Uwe Kleine-König
d8bde56dfd
Input: Switch i2c drivers back to use .probe()
...
After commit b8a1a4cd5a ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498 ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Link: https://lore.kernel.org/r/20230517164645.162294-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-05-17 09:59:11 -07:00
Dmitry Torokhov
9a87ffc99e
Merge branch 'next' into for-linus
...
Prepare input updates for 6.4 merge window.
2023-05-01 15:20:08 -07:00
Dmitry Torokhov
53bea86b57
Revert "Input: xpad - fix support for some third-party controllers"
...
This reverts commit db7220c48d because it
causes crashes when trying to dereference xpad->dev->dev in xpad_probe()
which has not been set up yet.
Reported-by: syzbot+a3f758b8d8cb7e49afec@syzkaller.appspotmail.com
Reported-by: Dongliang Mu <dzm91@hust.edu.cn >
Link: https://groups.google.com/g/syzkaller-bugs/c/iMhTgpGuIbM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-05-01 15:14:06 -07:00
Vicki Pfau
cf59501873
Input: xpad - fix PowerA EnWired Controller guide button
...
This commit explicitly disables the audio interface the same way the official
driver does. This is needed for some controllers, such as the PowerA Enhanced
Wired Controller for Series X|S (0x20d6:0x200e) to report the guide button.
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20230411031650.960322-3-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-04-14 00:02:55 -07:00
Vicki Pfau
f9b2e603c6
Input: xpad - add constants for GIP interface numbers
...
Wired GIP devices present multiple interfaces with the same USB identification
other than the interface number. This adds constants for differentiating two of
them and uses them where appropriate
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20230411031650.960322-2-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-04-14 00:02:53 -07:00
Vicki Pfau
db7220c48d
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/20230324040446.3487725-3-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-04-01 20:28:07 -07:00
Pierre-Loup A. Griffais
8fb1bcd0ba
Input: xpad - treat Qanba controllers as Xbox360 controllers
...
They act that way in PC mode.
Reviewed-by: Lyude Paul <lyude@redhat.com >
Signed-off-by: Pierre-Loup A. Griffais <pgriffais@valvesoftware.com >
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20230324040446.3487725-2-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-04-01 20:26:06 -07:00
Vicki Pfau
1999a6b12a
Input: xpad - add VID for Turtle Beach controllers
...
This adds support for the Turtle Beach REACT-R and Recon Xbox controllers
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20230225012147.276489-4-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-03-23 18:50:55 -07:00
Vicki Pfau
907d73bc0b
Input: xpad - remove unused field in VID/PID table
...
The list of specific VID/PID combinations for various controllers recently
added a new field "xtype". However, this field isn't used, nor filled in
the table itself, and was likely added by mistake and overlooked during
review. Since this field isn't used, it's safe to remove.
Signed-off-by: Vicki Pfau <vi@endrift.com >
Link: https://lore.kernel.org/r/20230225012147.276489-3-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-03-23 18:50:54 -07:00
Matthias Benkmann
ffa6206ebf
Input: xpad - fix incorrectly applied patch for MAP_PROFILE_BUTTON
...
When commit commit fff1011a26 ("Input: xpad - add X-Box Adaptive Profile
button") was applied, one hunk ended up in the wrong function; move it to
where it belongs.
Fixes: fff1011a26 ("Input: xpad - add X-Box Adaptive Profile button")
Signed-off-by: Matthias Benkmann <matthias.benkmann@gmail.com >
Link: https://lore.kernel.org/r/20230318162106.0aef4ba5@ninja
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-03-19 21:35:19 -07:00
John Butler
21617de3b4
Input: xpad - add 8BitDo Pro 2 Wired Controller support
...
Add VID and PID to the xpad_device table to allow driver
to use the 8BitDo Pro 2 Wired Controller, which is
XTYPE_XBOX360 compatible by default.
Signed-off-by: John Butler <radon86dev@gmail.com >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
Link: https://lore.kernel.org/r/20230124005206.80706-1-radon86dev@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-01-27 14:57:37 -08:00
Dmitry Torokhov
e291c116f6
Merge branch 'next' into for-linus
...
Prepare input updates for 6.2 merge window.
2022-12-12 10:47:03 -08:00
Jonathan Cameron
de4b8d2016
Input: pxspad - fix unused data warning when force feedback not enabled
...
The functions using this data were protected with #ifdef
CONFIG_JOYSTICK_PSXPAD_SPI_FF. Do the same for the data used only in
those functions.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20221204180841.2211588-33-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-12-07 13:29:05 -08:00
Jonathan Cameron
f3183157cf
Input: pxspad - switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
...
SIMPLE_DEV_PM_OPS() is deprecated as it requires explicit protection
against used function warnings. The new combination of pm_sleep_ptr()
and DEFINE_SIMPLE_DEV_PM_OPS() allows the compiler to see the functions,
thus suppressing the warning, but still allowing the unused code to be
removed. Thus also drop the __maybe_unused markings.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20221204180841.2211588-2-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-12-07 13:26:19 -08:00
Uwe Kleine-König
37ab3d75b4
Input: as5011 - Convert to i2c's .probe_new()
...
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Link: https://lore.kernel.org/r/20221118224540.619276-192-uwe@kleine-koenig.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-12-02 14:53:41 -08:00
Randy Dunlap
6100a19c4f
Input: joystick - fix Kconfig warning for JOYSTICK_ADC
...
Fix a Kconfig warning for JOYSTICK_ADC by also selecting
IIO_BUFFER.
WARNING: unmet direct dependencies detected for IIO_BUFFER_CB
Depends on [n]: IIO [=y] && IIO_BUFFER [=n]
Selected by [y]:
- JOYSTICK_ADC [=y] && INPUT [=y] && INPUT_JOYSTICK [=y] && IIO [=y]
Fixes: 2c2b364fdd ("Input: joystick - add ADC attached joystick driver.")
Reported-by: kernel test robot <lkp@intel.com >
Signed-off-by: Randy Dunlap <rdunlap@infradead.org >
Link: https://lore.kernel.org/r/20221104201238.31628-1-rdunlap@infradead.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-11-07 11:36:03 -08:00
Tetsuo Handa
b8ebf25099
Input: iforce - invert valid length check when fetching device IDs
...
syzbot is reporting uninitialized value at iforce_init_device() [1], for
commit 6ac0aec6b0 ("Input: iforce - allow callers supply data buffer
when fetching device IDs") is checking that valid length is shorter than
bytes to read. Since iforce_get_id_packet() stores valid length when
returning 0, the caller needs to check that valid length is longer than or
equals to bytes to read.
Reported-by: syzbot <syzbot+4dd880c1184280378821@syzkaller.appspotmail.com >
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp >
Fixes: 6ac0aec6b0 ("Input: iforce - allow callers supply data buffer when fetching device IDs")
Link: https://lore.kernel.org/r/531fb432-7396-ad37-ecba-3e42e7f56d5c@I-love.SAKURA.ne.jp
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-11-07 10:28:58 -08:00
Dmitry Torokhov
5f8f8574c7
Merge branch 'next' into for-linus
...
Prepare input updates for 6.1 merge window.
2022-10-09 22:30:23 -07:00
Christophe JAILLET
2d09ac951b
input: drop empty comment blocks
...
Commit 1a59d1b8e0 ("treewide: Replace GPLv2 boilerplate/reference with
SPDX - rule 156") has left some empty comment blocks.
Remove them to save a few lines of code.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Link: https://lore.kernel.org/r/26a2b905b259bfffaf2de5b26f2007b8606970ed.1664478665.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-09-29 16:25:42 -07:00
Nate Yocom
fff1011a26
Input: xpad - add X-Box Adaptive Profile button
...
Adds a new quirk for controllers that have a Profile button which has 4
states, reflected as an ABS_PROFILE axis with 4 values.
Signed-off-by: Nate Yocom <nate@yocom.org >
Tested-by: Bastien Nocera <hadess@hadess.net >
Link: https://lore.kernel.org/r/20220908173930.28940-6-nate@yocom.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2022-09-28 18:31:39 -07:00