Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189929
b: refs/heads/master
c: 014f615
h: refs/heads/master
i:
  189927: 56f0f6a
v: v3
  • Loading branch information
Ping Cheng authored and Dmitry Torokhov committed Apr 15, 2010
1 parent ac2043c commit 6132228
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afb567e3fdd2ee43b243cb4f6fe772ab921b2ada
refs/heads/master: 014f61504af276ba9d9544d8a7401d8f8526eb73
12 changes: 7 additions & 5 deletions trunk/drivers/input/tablet/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,13 +673,15 @@ static int wacom_resume(struct usb_interface *intf)
int rv;

mutex_lock(&wacom->lock);
if (wacom->open) {

/* switch to wacom mode first */
wacom_query_tablet_data(intf, features);

if (wacom->open)
rv = usb_submit_urb(wacom->irq, GFP_NOIO);
/* switch to wacom mode if needed */
if (!wacom_retrieve_hid_descriptor(intf, features))
wacom_query_tablet_data(intf, features);
} else
else
rv = 0;

mutex_unlock(&wacom->lock);

return rv;
Expand Down

0 comments on commit 6132228

Please sign in to comment.