On Wednesday 25 August 2004 02:55 am, Greg KH wrote:
>> How does this work for your device?  Your driver isn't the
> usb_serial_generic_device, right?  What kernel version are you using?

Yes, usb_serial_generic_device. I had rebuilt the kernel with usb_serial hard 
linked and forgot that hotplug was also trying to load the module. So your 
observation below was correct. Problem with loading module. 

I did have to make a couple of changes to generic.c since this device has 
fewer bulk_out than bulk_in. This is against 2.6.0.

--- generic.c.orig      Wed Aug 25 11:53:25 2004
+++ generic.c   Tue Aug 24 23:13:30 2004
@@ -147,7 +147,7 @@
        }

        /* only do something if we have a bulk out endpoint */
-       if (serial->num_bulk_out) {
+       if (serial->num_bulk_out && port->write_urb) {
                if (port->write_urb->status == -EINPROGRESS) {
                        dbg("%s - already writing", __FUNCTION__);
                        return (0);
@@ -195,7 +195,7 @@

        dbg("%s - port %d", __FUNCTION__, port->number);

-       if (serial->num_bulk_out) {
+       if (serial->num_bulk_out && port->write_urb) {
                if (port->write_urb->status != -EINPROGRESS)
                        room = port->bulk_out_size;
        }
@@ -211,7 +211,7 @@

        dbg("%s - port %d", __FUNCTION__, port->number);

-       if (serial->num_bulk_out) {
+       if (serial->num_bulk_out && port->write_urb) {
                if (port->write_urb->status == -EINPROGRESS)
                        chars = port->write_urb->transfer_buffer_length;
        }


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to