* [PATCH] HID: wacom: call _query_tablet_data() for BAMBOO_TOUCH
@ 2017-03-29 18:41 Aaron Armstrong Skomra
2017-03-30 9:31 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Aaron Armstrong Skomra @ 2017-03-29 18:41 UTC (permalink / raw)
To: linux-input, jkosina, pinglinux, killertofu, benjamin.tissoires
Cc: Aaron Armstrong Skomra, Aaron Armstrong Skomra
Commit a544c619a54b ("HID: wacom: do not attempt to switch mode
while in probe") introduces delayed work for querying (setting the
mode) on all tablets. Bamboo Touch (056a:00d0) has a ghost
interface which claims to be a pen device. Though this device can
be removed, we have to set the mode on the ghost pen interface
before we remove it. After the aforementioned delay was introduced
the device was being removed before the mode setting could be
executed.
Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
---
This is a fix for 4.11
drivers/hid/wacom_sys.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 0bcfb2026223..98bc9c90d5f8 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -2216,6 +2216,8 @@ static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
/* touch only Bamboo doesn't support pen */
if ((features->type == BAMBOO_TOUCH) &&
(features->device_type & WACOM_DEVICETYPE_PEN)) {
+ cancel_delayed_work_sync(&wacom->init_work);
+ _wacom_query_tablet_data(wacom);
error = -ENODEV;
goto fail_quirks;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: wacom: call _query_tablet_data() for BAMBOO_TOUCH
2017-03-29 18:41 [PATCH] HID: wacom: call _query_tablet_data() for BAMBOO_TOUCH Aaron Armstrong Skomra
@ 2017-03-30 9:31 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2017-03-30 9:31 UTC (permalink / raw)
To: Aaron Armstrong Skomra
Cc: linux-input, pinglinux, killertofu, benjamin.tissoires,
Aaron Armstrong Skomra
On Wed, 29 Mar 2017, Aaron Armstrong Skomra wrote:
> Commit a544c619a54b ("HID: wacom: do not attempt to switch mode
> while in probe") introduces delayed work for querying (setting the
> mode) on all tablets. Bamboo Touch (056a:00d0) has a ghost
> interface which claims to be a pen device. Though this device can
> be removed, we have to set the mode on the ghost pen interface
> before we remove it. After the aforementioned delay was introduced
> the device was being removed before the mode setting could be
> executed.
>
> Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Applied to for-4.11/upstream-fixes.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-30 9:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-29 18:41 [PATCH] HID: wacom: call _query_tablet_data() for BAMBOO_TOUCH Aaron Armstrong Skomra
2017-03-30 9:31 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).