Skip to contentSkip to conversation

HID: wacom: call _query_tablet_data() for BAMBOO_TOUCH

PATCH Applied Aaron Armstrong Skomra 2 participants 2 messages Mar 29, 2017 – Mar 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: wacom: call _query_tablet_data() for BAMBOO_TOUCH

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.

---
This is a fix for 4.11

 drivers/hid/wacom_sys.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hid/wacom_sys.c +2 -0
index 0bcfb2026223..98bc9c90d5f8 100644
@@ -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;
 	}
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 10 lines · 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.

Applied to for-4.11/upstream-fixes.

Signature · 2 lines
Jiri Kosina
SUSE Labs