I tried the other driver, it didn't work at all with that. With uhci it
worked until I gave a command for which it should take some time (two
seconds or so) before the reply arrives. When I tried that, it didn't
work at all anymore. With usb-uhci it didn't seem to give much errors,
but it didn't work either.
Backporting the patch seemed more work than it was worth, so I am now
running a 2.6 kernel with the patch. It works fine.
Thanks for the help,
Bas Wijnen
On Wed, Sep 03, 2003 at 03:34:45PM +0200, Bas Wijnen wrote:
> Hi,
>
> I'm writing a device driver for a spectrometer that can be connected to
> the computer via usb. It has one bulk in endpoint and one bulk out
> endpoint, so I thought I could get away with using the scanner driver and
> not doing any kernel-space programming.
>
> It seems to work... a bit. At some point the usb driver crashes horribly
> and the device doesn't work anymore at all. It says many times in the
> kernel log:
> host/uhci.c: ec00: host controller halted. very bad
Here's a patch for this for the 2.6 kernel that works for me and some
other people. You might want to see if you can fit it into the 2.4
driver.
Oh, does this happen if you use the usb-uhci driver instead of the uhci
driver?
thanks,
greg k-h
--
/** mastermind. input 4 numbers 0-5. output <right>.<in the right place> **/
main(){int c[4] ,x=3 ,l=getpid() ,i;; for( srand(l);c[ x]=- rand
()%6 ,x-- ;);; for( ;44> x;){ char a[9] ,*p=
"%.1f\n", b[9];x=i=0; gets(a);for (l=4 ;l-- ;)x+=-(a[l] -=48)==
(b[l ]=c[ l]); ;for (l=0;16 >i;l =++i %4)x
+=(b[i/4]+ a[l] ?0:( a[l]=b[i/4] =10)) ;printf(p,x *.1) ;};}
/** This signature should be viewed in a monospaced font, like courier. **/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel