From: sashiko-bot@kernel.org
To: "Alexandre Derumier" <aderumier@gmail.com>
Cc: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org
Subject: Re: [PATCH] HID: nintendo: fix rumble starved by the input report cadence gate
Date: Sat, 01 Aug 2026 09:16:19 +0000 [thread overview]
Message-ID: <20260801091619.92AC91F00AC4@smtp.kernel.org> (raw)
In-Reply-To: <20260801090059.1349535-1-aderumier@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Premature registration of input device before capabilities are fully configured.
--
--- Patch [1]: [PATCH] HID: nintendo: fix rumble starved by the input report cadence gate ---
commit b0ec0e9322fbf2a41d6005445efd2343b058fb43
Author: Alexandre Derumier <aderumier@gmail.com>
HID: nintendo: fix rumble starved by the input report cadence gate
Rumble on third-party controllers speaking the Switch protocol is weak
and intermittent over bluetooth, and absent on some units. This commit
adds a fallback to the legacy subcommand throttle when the controller
fails to meet the strict cadence requirements.
> [ ... ]
This is a pre-existing issue, but looking at joycon_input_create() in
drivers/hid/hid-nintendo.c:
drivers/hid/hid-nintendo.c:joycon_input_create() {
...
ret = input_register_device(ctlr->input);
if (ret)
return ret;
if (joycon_type_is_right_joycon(ctlr)) {
joycon_config_right_stick(ctlr->input);
joycon_config_buttons(ctlr->input, right_joycon_button_mappings);
...
}
[Severity: High]
Does this code register the input device before its capabilities (such as
buttons, axes, and force-feedback) are fully configured?
Registering before configuration completes can lead to undersized event
buffers and incorrect udev or Wayland classification since the capabilities
are checked at registration time.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260801090059.1349535-1-aderumier@gmail.com?part=1
prev parent reply other threads:[~2026-08-01 9:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-01 9:00 [PATCH] HID: nintendo: fix rumble starved by the input report cadence gate Alexandre Derumier
2026-08-01 9:16 ` sashiko-bot [this message]
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=20260801091619.92AC91F00AC4@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=aderumier@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.