From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
To: Jiri Kosina <jikos@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Duggan <aduggan@synaptics.com>,
linux-input@vger.kernel.org
Subject: Re: [PATCH] HID: rmi: fallback to generic/multitouch if hid-rmi is not built (was Re: [GIT PULL] HID for 4.11)
Date: Tue, 21 Feb 2017 18:37:06 +0100 [thread overview]
Message-ID: <20170221173706.GA21560@mail.corp.redhat.com> (raw)
In-Reply-To: <alpine.LSU.2.20.1702211514540.24579@cbobk.fhfr.pm>
On Feb 21 2017 or thereabouts, Jiri Kosina wrote:
> On Mon, 20 Feb 2017, Linus Torvalds wrote:
>
> > > I'll have a more specific commit (or range) soon.
> >
> > Hmm. It's commit 279967a65b32 ("HID: rmi: Handle all Synaptics
> > touchpads using hid-rmi").
> >
> > And the reason seems to be stupid: I don't have RMI enabled at all,
> > because that didn't use to work or make a difference.
> >
> > Maybe that "let's use RMI" code should depend on RMI actually being
> > enabled? Because as-is, that code now breaks existing configurations.
>
> I agree; that's in line with what we usually try to stick to (force
> specific drivers if the device doesn't work with the generic at all and
> switch over to generic in compile-time for devices that have limited
> functionality with the generic driver).
>
> Andrew, Benjamin, how about the patch below?
>
Hi,
Sorry, I am on PTO for the rest of the week with limited internet
access.
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Sorry for the waste of time :(
Cheers,
Benjamin
>
>
>
> From: Jiri Kosina <jkosina@suse.cz>
> Subject: [PATCH] HID: rmi: fallback to generic/multitouch if hid-rmi is not built
>
> Commit 279967a65b32 ("HID: rmi: Handle all Synaptics touchpads using hid-rmi")
> unconditionally switches over handling of all Synaptics touchpads to hid-rmi
> (to make use of extended features of the HW); in case CONFIG_HID_RMI is
> disabled though this renders the touchpad unusable, as the
>
> HID_DEVICE(HID_BUS_ANY, HID_GROUP_RMI, HID_ANY_ID, HID_ANY_ID)
>
> match doesn't exist and generic/multitouch doesn't bind to it either (due
> to hid group mismatch).
>
> Fix this by switching over to hid-rmi only if it has been actually built.
>
> Fixes: 279967a65b32 ("HID: rmi: Handle all Synaptics touchpads using hid-rmi")
> Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---
> drivers/hid/hid-core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
> index 538ff697a4cf..e9e87d337446 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -827,7 +827,8 @@ static int hid_scan_report(struct hid_device *hid)
> * hid-rmi should take care of them,
> * not hid-generic
> */
> - hid->group = HID_GROUP_RMI;
> + if (IS_ENABLED(CONFIG_HID_RMI))
> + hid->group = HID_GROUP_RMI;
> break;
> }
>
>
> --
> Jiri Kosina
> SUSE Labs
>
next prev parent reply other threads:[~2017-02-21 17:37 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-20 15:20 [GIT PULL] HID for 4.11 Jiri Kosina
2017-02-21 2:48 ` Linus Torvalds
2017-02-21 3:03 ` Linus Torvalds
2017-02-21 3:19 ` Linus Torvalds
2017-02-21 4:13 ` Linus Torvalds
2017-02-21 4:37 ` Linus Torvalds
2017-03-01 0:56 ` Linus Torvalds
2017-03-01 2:31 ` Andrew Duggan
2017-03-01 3:24 ` Peter Hutterer
2017-03-01 5:05 ` Linus Torvalds
2017-03-01 7:43 ` Andrew Duggan
2017-03-01 9:03 ` Benjamin Tissoires
2017-03-01 9:06 ` Benjamin Tissoires
2017-03-01 17:31 ` Dmitry Torokhov
2017-03-01 17:54 ` Linus Torvalds
2017-03-01 17:58 ` Dmitry Torokhov
2017-03-01 18:02 ` Linus Torvalds
2017-02-21 14:17 ` [PATCH] HID: rmi: fallback to generic/multitouch if hid-rmi is not built (was Re: [GIT PULL] HID for 4.11) Jiri Kosina
2017-02-21 15:43 ` Linus Torvalds
2017-02-21 15:46 ` Jiri Kosina
2017-02-21 15:49 ` Linus Torvalds
2017-02-21 17:42 ` Benjamin Tissoires
2017-02-21 21:03 ` Jiri Kosina
2017-02-22 0:53 ` Jason Gerecke
2017-02-21 17:37 ` Benjamin Tissoires [this message]
2017-02-21 21:16 ` Andrew Duggan
2017-02-21 21:16 ` Andrew Duggan
2017-02-21 9:32 ` ath10k regression on XPS13 Kalle Valo
2017-02-21 9:32 ` Kalle Valo
2017-02-21 18:18 ` David Miller
2017-02-21 18:18 ` David Miller
2017-02-21 18:38 ` Kalle Valo
2017-02-21 18:38 ` Kalle Valo
2017-02-21 18:53 ` David Miller
2017-02-21 18:53 ` David Miller
2017-02-21 19:49 ` Kalle Valo
2017-02-21 19:49 ` Kalle Valo
2017-02-21 21:00 ` David Miller
2017-02-21 21:00 ` David Miller
2017-02-21 18:52 ` Linus Torvalds
2017-02-21 18:52 ` Linus Torvalds
2017-02-21 21:01 ` David Miller
2017-02-21 21:01 ` David Miller
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=20170221173706.GA21560@mail.corp.redhat.com \
--to=benjamin.tissoires@redhat.com \
--cc=aduggan@synaptics.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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.