mbox series

[v3,0/4] HID: gamecube-adapter

Message ID 20201014013023.23078-1-fx.carton91@gmail.com (mailing list archive)
Headers show
Series HID: gamecube-adapter | expand


François-Xavier Carton Oct. 14, 2020, 1:30 a.m. UTC
Hi all,

This series adds a driver for Nintendo gamecube controller USB adapters.
I've only done minor coding style edits since v2, to better conform to
the kernel guidelines.

I'd greatly appreciate a review of the code (especially since this is my
first contribution to the kernel). I've been applying this patch series
to several 5.4 kernels, the latest being 5.9.66.

Many thanks,



- minor coding style edits

- Replaced calibration parameters by auto calibration using saved
  min/max values.
- Only send rumble output reports if the value changed.
- Only set rumble capability for normal controllers; wavebird
  controllers do not support rumble.
- Send init command after suspend to get input reports again.


François-Xavier Carton (4):
  HID: gamecube-adapter: add nintendo gamecube adapter
  HID: gamecube-adapter: add rumble support
  HID: gamecube-adapter: add auto calibration
  HID: gamecube-adapter: restore input after suspend

 MAINTAINERS                        |   6 +
 drivers/hid/Kconfig                |  18 ++
 drivers/hid/Makefile               |   1 +
 drivers/hid/hid-gamecube-adapter.c | 492 +++++++++++++++++++++++++++++
 drivers/hid/hid-ids.h              |   1 +
 5 files changed, 518 insertions(+)
 create mode 100644 drivers/hid/hid-gamecube-adapter.c