for info
---------- Forwarded Message -----------
From: Damian Wrobel <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thu, 22 Sep 2005 21:58:48 +0200 (CEST)
Subject: eagleusb-2.6.14-rc2-git1.patch

Hello,

Since the URB_ASYNC_UNLINK flag is not available anymore and the
usb_unlink_urb() becomes depricated, the eagle-usb driver don't
compile. Hence, I prepared a small patch, against the current cvs
snapshot of eagle-usb driver. It compiles and working successfully
with vanilla kernel 2.6.14-rc2-git1.

Please apply.

--
brgs,
dw

Index: driver/Pipes.c
===================================================================
RCS file: /cvs/eagleusb/eagleusb/driver/Pipes.c,v
retrieving revision 1.8
diff -u -b -B -r1.8 Pipes.c
--- driver/Pipes.c      17 Jan 2005 20:54:42 -0000      1.8
+++ driver/Pipes.c      22 Sep 2005 19:38:21 -0000
@@ -919,7 +919,6 @@
              *  -EINVAL.
             */
             urb->status = 0;
-            urb->transfer_flags &= ~URB_ASYNC_UNLINK;
        }
        else
        {
Index: driver/eu_eth.c
===================================================================
RCS file: /cvs/eagleusb/eagleusb/driver/eu_eth.c,v
retrieving revision 1.8
diff -u -b -B -r1.8 eu_eth.c
--- driver/eu_eth.c     17 Jan 2005 20:54:42 -0000      1.8
+++ driver/eu_eth.c     22 Sep 2005 19:38:21 -0000
@@ -495,11 +495,9 @@
      * netif_wakequeue:
     */

-    ins->urb_write->transfer_flags |= URB_ASYNC_UNLINK;
-    usb_unlink_urb(ins->urb_write);
+    usb_kill_urb(ins->urb_write);

-    ins->urb_oam_write->transfer_flags |= URB_ASYNC_UNLINK;
-    usb_unlink_urb(ins->urb_oam_write);
+    usb_kill_urb(ins->urb_oam_write);

     /* We must reset the transaction time to keep the watchdog quiet: */
     dev->trans_start = jiffies;
------- End of Forwarded Message -------


Reply via email to