Hi,

Here's a patch against 2.4.13-ac5 that adds support for one shot
interrupt urbs through the usbdevfs interface.  The patch was done by
Maksim Krasnyanskiy (the Linux Bluez stack author).

thanks,

greg k-h
(temporary USB maintainer)



diff --minimal -Nru a/drivers/usb/devio.c b/drivers/usb/devio.c
--- a/drivers/usb/devio.c       Thu Nov  1 15:05:39 2001
+++ b/drivers/usb/devio.c       Thu Nov  1 15:05:39 2001
@@ -844,6 +844,14 @@
                uurb.buffer_length = totlen;
                break;
 
+       case USBDEVFS_URB_TYPE_INTERRUPT:
+               uurb.number_of_packets = 0;
+               if (uurb.buffer_length > 16384)
+                       return -EINVAL;
+               if (!access_ok((uurb.endpoint & USB_DIR_IN) ? VERIFY_WRITE : 
+VERIFY_READ, uurb.buffer, uurb.buffer_length))
+                       return -EFAULT;   
+               break;
+
        default:
                return -EINVAL;
        }


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to