On Tue, May 24, 2005 at 07:52:28AM +0200, Martin Diehl wrote:
> On Mon, 23 May 2005, Henk wrote:
> 
> > > The variant in the kernel module will crash with something like:
> > >   ... host controller process error. something bad
> > >   ... host controller halted. very bad 
> > > 
> > >   /* KERNEL variant */
> > >   err = usb_control_msg(chip->udev, usb_sndctrlpipe(chip->udev, 0),
> [...]
> > >   CMD[URB_INIT],URB_LENGTH,       /* init string 16 bytes long*/
> 
> Just a wild guess: are you sure the CMD-buffer is properly kmalloc'ed, in 
> contrast to the stack or other location which is invalid for busmastering?
> I've seen this mistake leading to HC-errors on UHCI in the past.
> 
> Martin
> 
No the cmd strings are staticly defined data strings ....
I never thought of this before, but I'll bet you're absolutely right.

I will test this tonight.

Thanks Martin!

Regards,
Henk



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to