diff options
author | Ping Cheng <pingc@wacom.com> | 2009-12-15 03:35:24 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-15 03:35:55 -0500 |
commit | 232f5693e5c9483e222528ef81979e42ea2f2908 (patch) | |
tree | 16728d937f3cd0a124b28a6da22a673ecc9661f1 /drivers/input | |
parent | e47c4f70ea41fd973eec80a9388a1347d3d27896 (diff) |
Input: wacom - ensure the device is initialized properly upon resume
Call wacom_query_tablet_data() from wacom_resume() so the device will be
switched to Wacom mode upon resume. Devices that require this are: regular
tablets and two finger touch devices.
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/tablet/wacom.h | 7 | ||||
-rw-r--r-- | drivers/input/tablet/wacom_sys.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/input/tablet/wacom.h b/drivers/input/tablet/wacom.h index 9114ae1c7488..e6307ba452ea 100644 --- a/drivers/input/tablet/wacom.h +++ b/drivers/input/tablet/wacom.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/input/tablet/wacom.h | 2 | * drivers/input/tablet/wacom.h |
3 | * | 3 | * |
4 | * USB Wacom Graphire and Wacom Intuos tablet support | 4 | * USB Wacom tablet support |
5 | * | 5 | * |
6 | * Copyright (c) 2000-2004 Vojtech Pavlik <vojtech@ucw.cz> | 6 | * Copyright (c) 2000-2004 Vojtech Pavlik <vojtech@ucw.cz> |
7 | * Copyright (c) 2000 Andreas Bach Aaen <abach@stofanet.dk> | 7 | * Copyright (c) 2000 Andreas Bach Aaen <abach@stofanet.dk> |
@@ -69,6 +69,7 @@ | |||
69 | * v1.49 (pc) - Added support for USB Tablet PC (0x90, 0x93, and 0x9A) | 69 | * v1.49 (pc) - Added support for USB Tablet PC (0x90, 0x93, and 0x9A) |
70 | * v1.50 (pc) - Fixed a TabletPC touch bug in 2.6.28 | 70 | * v1.50 (pc) - Fixed a TabletPC touch bug in 2.6.28 |
71 | * v1.51 (pc) - Added support for Intuos4 | 71 | * v1.51 (pc) - Added support for Intuos4 |
72 | * v1.52 (pc) - Query Wacom data upon system resume | ||
72 | */ | 73 | */ |
73 | 74 | ||
74 | /* | 75 | /* |
@@ -89,9 +90,9 @@ | |||
89 | /* | 90 | /* |
90 | * Version Information | 91 | * Version Information |
91 | */ | 92 | */ |
92 | #define DRIVER_VERSION "v1.51" | 93 | #define DRIVER_VERSION "v1.52" |
93 | #define DRIVER_AUTHOR "Vojtech Pavlik <vojtech@ucw.cz>" | 94 | #define DRIVER_AUTHOR "Vojtech Pavlik <vojtech@ucw.cz>" |
94 | #define DRIVER_DESC "USB Wacom Graphire and Wacom Intuos tablet driver" | 95 | #define DRIVER_DESC "USB Wacom tablet driver" |
95 | #define DRIVER_LICENSE "GPL" | 96 | #define DRIVER_LICENSE "GPL" |
96 | 97 | ||
97 | MODULE_AUTHOR(DRIVER_AUTHOR); | 98 | MODULE_AUTHOR(DRIVER_AUTHOR); |
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index ea30c983a33e..b5b69cc0aaf0 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/input/tablet/wacom_sys.c | 2 | * drivers/input/tablet/wacom_sys.c |
3 | * | 3 | * |
4 | * USB Wacom Graphire and Wacom Intuos tablet support - system specific code | 4 | * USB Wacom tablet support - system specific code |
5 | */ | 5 | */ |
6 | 6 | ||
7 | /* | 7 | /* |
@@ -562,9 +562,10 @@ static int wacom_resume(struct usb_interface *intf) | |||
562 | int rv; | 562 | int rv; |
563 | 563 | ||
564 | mutex_lock(&wacom->lock); | 564 | mutex_lock(&wacom->lock); |
565 | if (wacom->open) | 565 | if (wacom->open) { |
566 | rv = usb_submit_urb(wacom->irq, GFP_NOIO); | 566 | rv = usb_submit_urb(wacom->irq, GFP_NOIO); |
567 | else | 567 | wacom_query_tablet_data(intf); |
568 | } else | ||
568 | rv = 0; | 569 | rv = 0; |
569 | mutex_unlock(&wacom->lock); | 570 | mutex_unlock(&wacom->lock); |
570 | 571 | ||