Thread (3 messages) 3 messages, 2 authors, 2008-06-27

Re: [rft]power management for usbtouch

From: Ville Syrjälä <syrjala@sci.fi>
Date: 2008-06-27 13:17:36

Possibly related (same subject, not in this thread)

On Fri, Jun 27, 2008 at 10:50:00AM +0200, Oliver Neukum wrote:
Hi,

this patch should fix everything you complained about. As I don't have
the hardware, please test.
I don't have the hardware either so can't help you there.
  
 static void usbtouch_close(struct input_dev *input)
 {
 	struct usbtouch_usb *usbtouch = input_get_drvdata(input);
 
+	mutex_lock(&usbtouch->lock);
+	usbtouch->open = 0;
+	mutex_unlock(&usbtouch->lock);
 	usb_kill_urb(usbtouch->irq);
usb_kill_urb() is still not protected by the mutex but a resume
happening here wouldn't resubmit the urb so I suppose it's OK to leave
it like that.

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help