HID: steelseries: Add support for Arctis 1 XBox
PATCH v5 1/1 HID: steelseries: Add support for Arctis 1 XBox
Add support for the Steelseries Arctis 1 XBox headset. This driver will export the battery information from the headset, as well as the "wireless_status" property.
---
v5:
- Move spinlock init as per bentiss review
- Use the already defined response length constant when parsing answers
- Avoid parsing non-battery events (fixes battery showing up as 3% for a couple of seconds in some rare circumstances)
v4:
- Guard against crash when using uhid
- Print the contents of the raw events for debugging
v3:
- Dependency is on USB not USB_HID
v2:
- Fix missing USB dependency
- Fix config option description
drivers/hid/Kconfig | 6 +- drivers/hid/hid-steelseries.c | 311 ++++++++++++++++++++++++++++++++-- 2 files changed, 300 insertions(+), 17 deletions(-)
drivers/hid/Kconfig +4 -2
@@ -1048,9 +1048,11 @@ config STEAM_FF Deck. config HID_STEELSERIES - tristate "Steelseries SRW-S1 steering wheel support" + tristate "Steelseries devices support" + depends on USB help - Support for Steelseries SRW-S1 steering wheel + Support for Steelseries SRW-S1 steering wheel, and the Steelseries + Arctis 1 Wireless for XBox headset. config HID_SUNPLUS tristate "Sunplus wireless desktop"
drivers/hid/hid-steelseries.c +296 -15
345 lines not on this page · raw message
Signature · 1 line
2.41.0
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Bastien,
kernel test robot noticed the following build errors:
[auto build test ERROR on hid/for-next]
[also build test ERROR on linus/master v6.4 next-20230703] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Bastien-Nocera/HID-steelseries-Add-support-for-Arctis-1-XBox/20230703-183124 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next patch link: https://lore.kernel.org/r/20230703102918.9941-1-hadess%40hadess.net patch subject: [PATCH v5] HID: steelseries: Add support for Arctis 1 XBox config: parisc-randconfig-r032-20230703 (https://download.01.org/0day-ci/archive/20230703/[email protected]/config) compiler: hppa-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230703/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
hppa-linux-ld: drivers/hid/hid-steelseries.o: in function `.LC10':
>> hid-steelseries.c:(.rodata.cst4+0x8): undefined reference to `hid_is_usb'
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Benjamin Tissoires
maintainerQuoted 19 lines · kernel test robot
Hi Bastien,
kernel test robot noticed the following build errors:
[auto build test ERROR on hid/for-next]
[also build test ERROR on linus/master v6.4 next-20230703] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/Bastien-Nocera/HID-steelseries-Add-support-for-Arctis-1-XBox/20230703-183124 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next patch link: https://lore.kernel.org/r/20230703102918.9941-1-hadess%40hadess.net patch subject: [PATCH v5] HID: steelseries: Add support for Arctis 1 XBox config: parisc-randconfig-r032-20230703 (https://download.01.org/0day-ci/archive/20230703/[email protected]/config) compiler: hppa-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230703/[email protected]/reproduce)
Quoted 9 lines
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
hppa-linux-ld:
drivers/hid/hid-steelseries.o: in function `.LC10':Quoted 1 line
Quoted 1 line
hid-steelseries.c:(.rodata.cst4+0x8): undefined reference to `hid_is_usb'
Bastien, you need a depends on USB_HID IIRC in your Kconfig (at least CONFIG_USB_HID is not set in that kernel test bot run).
Cheers,
Benjamin
Quoted 4 lines
Signature · 3 lines
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 41 lines · Benjamin Tissoires
Quoted 39 lines · kernel test robot
Hi Bastien,
kernel test robot noticed the following build errors:
[auto build test ERROR on hid/for-next]
[also build test ERROR on linus/master v6.4 next-20230703] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url:
https://github.com/intel-lab-lkp/linux/commits/Bastien-Nocera/HID-steelseries-Add-support-for-Arctis-1-XBox/20230703-183124
base:
https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-
next
patch link:
https://lore.kernel.org/r/20230703102918.9941-1-hadess%40hadess.net
patch subject: [PATCH v5] HID: steelseries: Add support for Arctis 1 XBox
config: parisc-randconfig-r032-20230703
(https://download.01.org/0day-ci/archive/20230703/202307032208.b5br
[email protected]/config)
compiler: hppa-linux-gcc (GCC) 12.3.0
reproduce:
(https://download.01.org/0day-ci/archive/20230703/202307032208.b5br
[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tagsQuoted 3 lines
Reported-by kernel test robot <[email protected]>Closes:
https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 7 lines
Quoted 4 lines
hppa-linux-ld:
drivers/hid/hid-steelseries.o: in function `.LC10':Quoted 2 lines
Quoted 2 lines
hid-steelseries.c:(.rodata.cst4+0x8): undefined reference to `hid_is_usb'
Bastien, you need a depends on
USB_HIDIIRC in yourKconfig(at leastCONFIG_USB_HIDis not set in that kernel test bot run).
Yeah, I just get to undo the changes from v3 ;)