Linux Input Archive mirror
 help / color / mirror / Atom feed
From: Milas Robin <milas.robin@live.fr>
To: dmitry.torokhov@gmail.com
Cc: linux-input@vger.kernel.org, Milas Robin <milas.robin@live.fr>
Subject: [PATCH 0/1] Input: add gamecube adapter support
Date: Thu, 28 Mar 2024 03:06:50 +0100	[thread overview]
Message-ID: <PA4P189MB1469A4E2A0633A2091BC9FFFFA3B2@PA4P189MB1469.EURP189.PROD.OUTLOOK.COM> (raw)

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

-- 
2.44.0


                 reply	other threads:[~2024-03-28  2:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PA4P189MB1469A4E2A0633A2091BC9FFFFA3B2@PA4P189MB1469.EURP189.PROD.OUTLOOK.COM \
    --to=milas.robin@live.fr \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).