Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1474012 > unrolled thread

RFC: Backport HID-logitech to 3.10?

Started by"Simon Wood" <simon@mungewell.org>
First post2016-09-01 03:30 +0200
Last post2016-09-02 17:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  RFC: Backport HID-logitech to 3.10? "Simon Wood" <simon@mungewell.org> - 2016-09-01 03:30 +0200
    Re: RFC: Backport HID-logitech to 3.10? Benjamin Tissoires <benjamin.tissoires@gmail.com> - 2016-09-02 11:40 +0200
      Re: RFC: Backport HID-logitech to 3.10? "Simon Wood" <simon@mungewell.org> - 2016-09-02 17:00 +0200

#1474012 — RFC: Backport HID-logitech to 3.10?

From"Simon Wood" <simon@mungewell.org>
Date2016-09-01 03:30 +0200
SubjectRFC: Backport HID-logitech to 3.10?
Message-ID<scoZj-1zc-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi all,
I received a question regarding back-porting the support for the G29
racing wheel to 3.10 (Android in particular), and after some collaborative
work we determined that changes between 3.10 and 4.7 are actually pretty
minimal and self contained.

After copying the HEAD 'hid-lg.[ch]' and 'hid-lg4ff.[ch]' from 4.7, there
is a minimal patch (example attached) required to get the build working.


My question to the list would be how this would/could be implemented, and
how the process works as 3.10 moves through the mainline patches to reach
current HEAD.

Any hints that anyone has would be appreciated.
Simon.

[toc] | [next] | [standalone]


#1474975

FromBenjamin Tissoires <benjamin.tissoires@gmail.com>
Date2016-09-02 11:40 +0200
Message-ID<scT73-67d-5@gated-at.bofh.it>
In reply to#1474012
Hi Simon,

On Thu, Sep 1, 2016 at 2:56 AM, Simon Wood <simon@mungewell.org> wrote:
> Hi all,
> I received a question regarding back-porting the support for the G29
> racing wheel to 3.10 (Android in particular), and after some collaborative
> work we determined that changes between 3.10 and 4.7 are actually pretty
> minimal and self contained.
>
> After copying the HEAD 'hid-lg.[ch]' and 'hid-lg4ff.[ch]' from 4.7, there
> is a minimal patch (example attached) required to get the build working.

Don't you need hid-logitech-hidpp too?

>
>
> My question to the list would be how this would/could be implemented, and
> how the process works as 3.10 moves through the mainline patches to reach
> current HEAD.

Not sure I understand exactly what you want from us here.

The stable rules are detailed in
Documentation/stable_kernel_rules.txt. And unfortunately, I don't
think adding these patches will be acceptable for upstream 3.10.
The rule of thumb is that if a distribution wants to backport changes,
they can have their own rules but the official stable tree is only for
fixing issues, not adding new device support, unless it's *very* small
("- New device IDs and quirks are also accepted.")

So if you need to backport the changes to the 3.10 tree, see the rules
of the distribution you are working on. Some prefer backporting full
commits only (to keep closer to upstream), others will accept some #if
LINUX_VERSION. In those case, I'd personally rather have a small
header that makes the glue between old code and new one to keep the
code closer to upstream.

Cheers,
Benjamin

>
> Any hints that anyone has would be appreciated.
> Simon.

[toc] | [prev] | [next] | [standalone]


#1475216

From"Simon Wood" <simon@mungewell.org>
Date2016-09-02 17:00 +0200
Message-ID<scY6J-KW-1@gated-at.bofh.it>
In reply to#1474975
On Fri, September 2, 2016 3:32 am, Benjamin Tissoires wrote:
> On Thu, Sep 1, 2016 at 2:56 AM, Simon Wood <simon@mungewell.org> wrote:
>> After copying the HEAD 'hid-lg.[ch]' and 'hid-lg4ff.[ch]' from 4.7,
>> there is a minimal patch (example attached) required to get the build
>> working.
>
> Don't you need hid-logitech-hidpp too?

Hi Benjamin,
Nope, the 'hid-logitech-hidpp.ko' driver is separate and (for wheels) only
has support for the G920 wheel. Other Logitech wheels are handled by
'hid-logitech.ko'.

> Not sure I understand exactly what you want from us here.

A puppy. ;-)

> The stable rules are detailed in
> Documentation/stable_kernel_rules.txt. And unfortunately, I don't
> think adding these patches will be acceptable for upstream 3.10.

After reading through these I would agree with you, that this is a
nice-to-have not a need-to-have. So, the patch is here if anyone wants to
use it personally or for a distribution.

Thank you for your comments,
Simon.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web