-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstreaming the driver #35
Comments
That's what I'd like to do. I've been planning it in my head but I think there's some work to do and I'm not sure how well will it be received. I just need some motivation and a bit of time. I think I should break the changes into several patches for each feature, there would be a big one for the effects implementation and other smaller patches for the secondary features. And for every patch I work on, send it upstream and try to get it merged. Any advice and guiding from someone knowledgeable would help at this point. |
Hi :) I have contributed to Linux before, although only a minor patch (adding a device ID to a serial device, many moons ago). But! It isn't too difficult and don't get too intimidated. It looks like the HID device maintainer list is at [email protected], as found in the
It's best to touch base with them first and get feedback on your changes and how they want to go about this. Make sure all your code follows the kernel coding style. I haven't looked too deeply at the code, so I'm not sure if it all conforms, but I saw no obvious issues. |
Thanks for sharing! I was just starting to take it more seriously. I wanted to simplify the changes before starting commiting patches but I'm hesitating about talking to them first. When you say touching base do you mean explaining them the changes without sending any code? |
I think #49 should be fixed before trying to upstream the driver. |
Nothing has been fixed in the driver, it's that ETS2 has changed the way it uses FFB. I haven't tried to upstream the driver because, due to my limited time, it'll most probably be a lot of work for me to create the patches they'll want. And if they're picky, I have already received hints that they will, they could block the important parts because they're not a perfect implementation. The truth is that the driver implements the features games use but in corner cases it wouldn't do what it's supposed to do. Given the high probability that I could do the work just to be rejected, I'll wait until someone close to the kernel people gives me an indication that they're really interested and tell me which parts should be improved before approaching upstream. |
I was testing with the OLD FFB version of ETS2 that's why i specified 1.41 as its the old FFB model, versions 1.42 and after use the new FFB model. There absolutely was an unintentional fix in the driver with the changes after 0.4.0.
Submitting your code or someone else on your behalf to the mailing list is the only real way to actually get help on what needs to be changed |
Thats's right, even if you are uninterested in doing all this work,
it may attract actual kernel dev, having this hardware and taking over
this process in the end. Logitech wheels are most popular BTW,
…On 1/31/23, motolav ***@***.***> wrote:
> Nothing has been fixed in the driver, it's that ETS2 has changed the way
> it uses FFB.
I was testing with the OLD FFB version of ETS2 that's why i specified 1.41
as its the old FFB model, versions 1.42 and after use the new FFB model.
There absolutely was an unintentional fix in the driver with the changes
after 0.4.0.
> Given the high probability that I could do the work just to be rejected,
> I'll wait until someone close to the kernel people gives me an indication
> that they're really interested and tell me which parts should be improved
> before approaching upstream.
Submitting your code or someone else on your behalf to the mailing list is
the only real way to actually get help on what needs to be changed
--
Reply to this email directly or view it on GitHub:
#35 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
I'll try to get in touch with the kernel maintainers and ask them what would I need to do to upstream it. Maybe it's not that hard. |
That's very weird. I'll have to try it. |
Setting up an email client is the hardest part if you want people to be able to compile and test your code from an email. You will likely have to make a new repo/branch to create either a single large commit of all your changes or a few smaller commits of all your major changes. |
I pasted your driver into the kernel code see the diff and it seems a bit too much to submit as one commit, 1544 insertions(+), 531 deletions(-). (I manually updated hid-ids.h and hid-lg.c as there was a few changes after your fork) |
Don't worry about your code being bug-free before submitting, as long as it isn't going to break anything that works today. You are adding functionality that is lacking. There are totally bugs, when they are known, they can be fixed with patches. |
Indeet, it's not. As a total beginner in kernel development, I contributed some minor HID patches and an insignificant gamepad device driver. The HID maintainers were friendly folks and very patient, contributing was a pleasant experience. Your driver is very helpful and would be a very good addition to the mainline kernel. Please be encouraged to go on upstreaming it. Thanks! |
Is there any plan for upstreaming this module driver to expand/replace the current in-tree
hid-logitech
?The text was updated successfully, but these errors were encountered: