f60cfbf
Bugzilla: N/A
f60cfbf
Upstream-status: Sent upstream
f60cfbf
f60cfbf
This reverts commit 1b2faaf7e219fc2905d75afcd4c815e5d39eda80.
f60cfbf
f60cfbf
The Intuos4 series presents a bug in which it hangs if it receives
f60cfbf
a set feature command while switching to the enhanced mode.
f60cfbf
This bug is triggered when plugging an Intuos 4 while having
f60cfbf
a gnome user session up and running.
f60cfbf
f60cfbf
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
f60cfbf
---
f60cfbf
f60cfbf
Hi Aris,
f60cfbf
f60cfbf
actually, you bisected the bug, so can I consider that I have your signed-off-by?
f60cfbf
f60cfbf
Cheers,
f60cfbf
Benjamin
f60cfbf
f60cfbf
 drivers/input/tablet/wacom_sys.c | 3 +++
f60cfbf
 1 file changed, 3 insertions(+)
f60cfbf
f60cfbf
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
f60cfbf
index 7087b33..319a3ff 100644
f60cfbf
--- a/drivers/input/tablet/wacom_sys.c
f60cfbf
+++ b/drivers/input/tablet/wacom_sys.c
f60cfbf
@@ -536,6 +536,9 @@ static int wacom_set_device_mode(struct usb_interface *intf, int report_id, int
f60cfbf
 
f60cfbf
 		error = wacom_set_report(intf, WAC_HID_FEATURE_REPORT,
f60cfbf
 		                         report_id, rep_data, length, 1);
f60cfbf
+		if (error >= 0)
f60cfbf
+			error = wacom_get_report(intf, WAC_HID_FEATURE_REPORT,
f60cfbf
+			                         report_id, rep_data, length, 1);
f60cfbf
 	} while ((error < 0 || rep_data[1] != mode) && limit++ < WAC_MSG_RETRIES);
f60cfbf
 
f60cfbf
 	kfree(rep_data);
f60cfbf
-- 
f60cfbf
1.9.0
f60cfbf