From: sashiko-bot@kernel.org
To: "Vicki Pfau" <vi@endrift.com>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v7 11/12] HID: Map more automobile simulation inputs
Date: Sat, 12 Sep 2026 03:28:42 +0000 [thread overview]
Message-ID: <20260912032843.4AF3E1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260912030426.2997003-12-vi@endrift.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] hid-universal-pidff: Loop boundary hardcodes ABS_BRAKE, missing the newly added ABS_CLUTCH and ABS_SHIFTER axes.
--
commit 5a43f61b9ef2583fea1214cddf577437072e1c07
Author: Vicki Pfau <vi@endrift.com>
HID: Map more automobile simulation inputs
This commit maps the previously ignored HID usages for clutch and shifter
to ABS_CLUTCH and ABS_SHIFTER in hidinput_configure_usage.
> diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
> index 3487600cadb42..6ade969412c67 100644
> --- a/drivers/hid/hid-input.c
> +++ b/drivers/hid/hid-input.c
> @@ -828,6 +828,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
> case 0xbb: map_abs(ABS_THROTTLE); break;
> case 0xc4: map_abs(ABS_GAS); break;
> case 0xc5: map_abs(ABS_BRAKE); break;
> + case 0xc6: map_abs(ABS_CLUTCH); break;
> + case 0xc7: map_abs(ABS_SHIFTER); break;
[Severity: Medium]
Does this change unintentionally leave the new simulation axes with large
default deadzones on devices handled by the hid-universal-pidff driver?
In drivers/hid/hid-universal-pidff.c, the universal_pidff_input_configured
function explicitly attempts to clear default deadzones for simulation axes
to ensure high precision. However, it relies on a hardcoded loop boundary:
for (axis = ABS_X; axis <= ABS_BRAKE; axis++) {
...
}
Since ABS_CLUTCH and ABS_SHIFTER are numerically greater than ABS_BRAKE,
the loop will miss these newly mapped axes. This introduces an unwanted
default deadzone of 1/16th of their range on the clutch and shifter axes,
which might degrade the simulation experience for users of high-end sim
racing wheels.
Should the loop boundary in universal_pidff_input_configured be updated to
include these new axes?
> case 0xc8: map_abs(ABS_WHEEL); break;
> default: goto ignore;
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260912030426.2997003-1-vi@endrift.com?part=11
next prev parent reply other threads:[~2026-09-12 3:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 3:04 [PATCH v7 00/12] Input: xbox_gip - Add new driver for Xbox GIP Vicki Pfau
2026-09-12 3:04 ` [PATCH v7 01/12] " Vicki Pfau
2026-09-12 3:25 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 02/12] Input: xpad - Remove Xbox One support Vicki Pfau
2026-09-12 3:22 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 03/12] Input: xbox_gip - Add controllable LED support Vicki Pfau
2026-09-12 3:20 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 04/12] Input: xbox_gip - Add HID relaying Vicki Pfau
2026-09-12 3:21 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 05/12] Input: xbox_gip - Add battery support Vicki Pfau
2026-09-12 3:22 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 06/12] Input: xbox_gip - Allow sending fragmented and ACME messages Vicki Pfau
2026-09-12 3:23 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 07/12] Input: xbox_gip - Add security implementation from xone Vicki Pfau
2026-09-12 3:21 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 08/12] Input: xbox_gip - Add arcade stick support Vicki Pfau
2026-09-12 3:16 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 09/12] Input: xbox_gip - Add support for PDP guitar controllers Vicki Pfau
2026-09-12 3:23 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 10/12] Input: Add ABS_CLUTCH, HANDBRAKE, and SHIFTER Vicki Pfau
2026-09-12 3:28 ` sashiko-bot
2026-09-12 3:04 ` [PATCH v7 11/12] HID: Map more automobile simulation inputs Vicki Pfau
2026-09-12 3:28 ` sashiko-bot [this message]
2026-09-12 3:04 ` [PATCH v7 12/12] Input: xbox_gip - Add wheel support Vicki Pfau
2026-09-12 3:33 ` sashiko-bot
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=20260912032843.4AF3E1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vi@endrift.com \
/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.