We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32f539 commit c1d7b7cCopy full SHA for c1d7b7c
drivers/input/tablet/pegasus_notetaker.c
@@ -410,7 +410,19 @@ static int pegasus_resume(struct usb_interface *intf)
410
411
static int pegasus_reset_resume(struct usb_interface *intf)
412
{
413
- return pegasus_resume(intf);
+ struct pegasus *pegasus = usb_get_intfdata(intf);
414
+ int retval = 0;
415
+
416
+ mutex_lock(&pegasus->dev->mutex);
417
+ if (pegasus->dev->users) {
418
+ retval = pegasus_set_mode(pegasus, PEN_MODE_XY,
419
+ NOTETAKER_LED_MOUSE);
420
+ if (!retval && usb_submit_urb(pegasus->irq, GFP_NOIO) < 0)
421
+ retval = -EIO;
422
+ }
423
+ mutex_unlock(&pegasus->dev->mutex);
424
425
+ return retval;
426
}
427
428
static const struct usb_device_id pegasus_ids[] = {
0 commit comments