On Mon, Sep 16, 2002 at 08:16:42PM -0400, Stuart MacDonald wrote:
>
> Greg thinks it's the queueing changes between 5.24 and 5.25, but he
> hasn't had time to look at it.
No, the problem was that HZ changed in 5.25, and I wasn't using it in
the call to usb_control_msg(). Here's the patch that fixes the problem,
and now my whiteheat device works just fine.
Stuart, let me know if this does not solve the problem for you.
thanks,
greg k-h
diff -Nru a/drivers/usb/serial/usbserial.c b/drivers/usb/serial/usbserial.c
--- a/drivers/usb/serial/usbserial.c Wed Sep 18 10:58:09 2002
+++ b/drivers/usb/serial/usbserial.c Wed Sep 18 10:58:09 2002
@@ -498,7 +498,7 @@
return -ENOMEM;
}
memcpy (transfer_buffer, data, length);
- result = usb_control_msg (serial->dev, usb_sndctrlpipe(serial->dev, 0),
bRequest, 0x40, address, 0, transfer_buffer, length, 300);
+ result = usb_control_msg (serial->dev, usb_sndctrlpipe(serial->dev, 0),
+bRequest, 0x40, address, 0, transfer_buffer, length, 3*HZ);
kfree (transfer_buffer);
return result;
}
-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel