From: Vicki Pfau <vi@endrift.com>
To: "Pär Eriksson" <parherman@gmail.com>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Pavel Rojtberg" <rojtberg@gmail.com>,
"Nilton Perim Neto" <niltonperimneto@gmail.com>,
"Antheas Kapenekakis" <lkml@antheas.dev>,
"Mario Limonciello" <mario.limonciello@amd.com>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] xpad: Add support for Thrustmaster, Inc. Ferrari 458 Spider Racing Wheel
Date: Tue, 5 Aug 2025 13:23:39 -0700 [thread overview]
Message-ID: <1607cb00-1146-4a64-92cc-65eb91062706@endrift.com> (raw)
In-Reply-To: <20250805192036.53918-1-parherman@gmail.com>
Hi Pär,
On 8/5/25 12:20 PM, Pär Eriksson wrote:
> Hello,
>
> This patch series adds support for the Thrustmaster, Inc. Ferrari 458 Spider Racing Wheel (USB ID 044f:b671) to the xpad driver. The implementation is inspired by the work in https://github.com/Capure/xpad.
>
> The wheel reports steering and pedal data at non-standard offsets, so custom axis mapping is introduced via a new mapping flag.
> I have tested the changes with the actual hardware on Fedora 42 (kernel 6.15.7-200.fc42.x86_64), and confirmed correct input reporting.
>
> If you prefer a different name for the mapping flag, please let me know.
>
> Please consider this for upstream inclusion.
>
> Pär Eriksson (3):
> Input: xpad - Add MAP_FERRARI_458_CUSTOM_AXES mapping flag
> Input: xpad - Add Thrustmaster Ferrari 458 Spider (044f:b671) device
> entry
> Input: xpad - Implement custom axis mapping for Ferrari 458 Spider
>
> drivers/input/joystick/xpad.c | 35 ++++++++++++++++++++++++-----------
> 1 file changed, 24 insertions(+), 11 deletions(-)
>
So I have several concerns with this series in general. First of all, it should be just one patch, but more importantly, the device *does* have standard offsets...just not standard *gamepad* offsets. GIP, the Xbox One controller protocol, uses GUIDs to specify the type of device in question. Most devices you're familiar with use the gamepad GUID, but the wheels use a different one which have a different set of mappings. So ideally, the name of the flag would be MAP_WHEEL.
However, the problem runs deeper. This is all easily detectable from the metadata. xpad *in general* does not support the metadata parsing, so we can't autodetect it without parsing it. Unfortunately, the metadata message is fragmented. xpad *in general* does not support fragmented messages. xpad is based on a very rudimentary understanding of the protocol, which is very obsolete at this point.
I have a new driver I've been working on for a few months that supports all of this stuff properly, including wheels, that I am hoping to support for the 6.17 merge window. I may be too late, but if I submit it soon you can at least pull it downstream while waiting for the 6.18 merge window. I'll see if I can get it ready before the end of the week.
Vicki
next prev parent reply other threads:[~2025-08-05 20:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 19:20 Pär Eriksson
2025-08-05 19:20 ` [PATCH 1/3] Input: xpad - Add MAP_FERRARI_458_CUSTOM_AXES mapping flag Pär Eriksson
2025-08-05 19:20 ` [PATCH 2/3] Input: xpad - Add Thrustmaster Ferrari 458 Spider (044f:b671) device entry Pär Eriksson
2025-08-05 19:20 ` [PATCH 3/3] Input: xpad - Implement custom axis mapping for Ferrari 458 Spider Pär Eriksson
2025-08-05 20:23 ` Vicki Pfau [this message]
2025-08-05 20:57 ` [PATCH 0/3] xpad: Add support for Thrustmaster, Inc. Ferrari 458 Spider Racing Wheel Dmitry Torokhov
2025-08-06 0:16 ` Vicki Pfau
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=1607cb00-1146-4a64-92cc-65eb91062706@endrift.com \
--to=vi@endrift.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@antheas.dev \
--cc=mario.limonciello@amd.com \
--cc=niltonperimneto@gmail.com \
--cc=parherman@gmail.com \
--cc=rojtberg@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®