Hi Kashif-

Sorry about the delay.

I sorta doubt that I'm helping you much on this problem.

I have seen emails about it many times, so I don't doubt that
there is some kind of problem.

I'll try it now with a USB mouse instead of a webcam device.
I'm still using 2.4.14 or 2.4.16, however.
{time passes}
OK, tried it with a mouse, but no timeout problems.
Sorry I can't help you more with this.

Regarding the driver source code:
I had to make several changes to it to use it,
first to compile it cleanly -- and then to load it without
causing an oops.  Did you #define LINUX_24 when you compiled it?
(maybe on the gcc command line, using -DLINUX_24 ?)

To load it successfully (without an oops), I:
a. added a function prototype for usbsample_read()
b. remove one of the 2 declarations of struct usb_driver
sample_usb_driver;
c. #define LINUX_24
d. in usb_sample_fops, add: owner: THIS_MODULE,
e. in usb_sample_fops, change write: to NULL,
f. in usb_sample_fops, change release: to NULL,
g. at the end of the file, remove the final #endif

~Randy


Kashif Rajput wrote:
| Dear Randy,
| Yes i am using exactly the same code each word of it the same. There
is one
| thing though and that is the fact that i have yet to use any device
other than a
| USB mouse. Moreover you asked for the kernel version i am using
2.4.10. 
|Thank you.
|Kashif

  "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: Kashif Rajput wrote:
> 
> I am sending the driver source that is causing the
> error when a device is made to connect. Shall be
> grateful, if anybody can suggest a remedy.

When _any_ device is connected, or just your (unknown) device?

I can build this driver and insmod it and connect a CPIA
webcam without any usb timeout messages or errors...
although I had to fix the driver in several places first.

Are you using exactly this source code, or did you post
some modified source code?

I'm using Linux 2.4.14. What version are you using?

~Randy

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

Reply via email to