<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">ChangeSet 1.865.28.5, 2002/12/19 12:09:18-08:00, oliver@neukum.name

[PATCH] USB: more spinlock work for speedtouch

   - simple spinlocks will do


diff -Nru a/drivers/usb/misc/speedtouch.c b/drivers/usb/misc/speedtouch.c
--- a/drivers/usb/misc/speedtouch.c	Sun Dec 22 00:41:25 2002
+++ b/drivers/usb/misc/speedtouch.c	Sun Dec 22 00:41:25 2002
@@ -701,7 +701,6 @@
 {
 	struct udsl_data_ctx *ctx;
 	struct udsl_instance_data *instance;
-	unsigned long flags;
 
 	if (!urb)
 		return;
@@ -723,9 +722,9 @@
 		skb_put (ctx-&gt;skb, urb-&gt;actual_length);
 
 		/* queue the skb for processing and wake the SAR */
-		spin_lock_irqsave (&amp;instance-&gt;recvqlock, flags);
+		spin_lock (&amp;instance-&gt;recvqlock);
 		skb_queue_tail (&amp;instance-&gt;recvqueue, ctx-&gt;skb);
-		spin_unlock_irqrestore (&amp;instance-&gt;recvqlock, flags);
+		spin_unlock (&amp;instance-&gt;recvqlock);
 		wake_up (&amp;udsl_wqh);
 		/* get a new skb */
 		ctx-&gt;skb = dev_alloc_skb (UDSL_RECEIVE_BUFFER_SIZE);
</pre></body></html>