mbox series

[0/1] Input: add gamecube adapter support

Message ID PA4P189MB1469A4E2A0633A2091BC9FFFFA3B2@PA4P189MB1469.EURP189.PROD.OUTLOOK.COM
Headers show
Series Input: add gamecube adapter support | expand

Message

Milas Robin March 28, 2024, 2:06 a.m. UTC
Hi everyone,

This patch add support for the Wii U / Nintendo Switch GameCube adapter
This is also my first contribution to the linux kernel

I tried as my best to make it based on github.com/ToadKing/wii-u-gc-adapter and
Dolphin Emulator project as well as the xpad driver.

There still an issue with it as the device report itself as an usb-hid device
the usb-hid generic driver take the priority rather than this module if usb-hid
is compiled directly into the kernel and this module as an external module.
How can I fix this problem ? The module function properly if bind manually or
if the usb-hid module is not enabled.

Also I'm not really good with parallel programming I tried my best to make sure
than there is no race condition but would be grateful if some can check too.

Thank you for your time reading my contribution
Robin

Milas Robin (1):
  Input: add gamecube adapter support

 drivers/input/joystick/Kconfig            |  20 +
 drivers/input/joystick/Makefile           |   1 +
 drivers/input/joystick/gamecube-adapter.c | 607 ++++++++++++++++++++++
 3 files changed, 628 insertions(+)
 create mode 100644 drivers/input/joystick/gamecube-adapter.c