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 
> > > 
> Should read:
> > >   /* KERNEL variant */
> > >   err = usb_control_msg(chip->udev, usb_sndctrlpipe(chip->udev, 0),
> > >   0x9,                            /* request */
> > >   (1 << 5) | 1,                   /* requesttype */
> > >   0x200,                          /* value */
> > >   0x03,                           /* index */ 
> > >   CMD[URB_INIT],URB_LENGTH,       /* init string 16 bytes long*/
> > >   HZ);                            /* timeout = 1 sec */
> > > 
> > > 
> > 
> > You're giving the requesttype argument twice.
> > 
> > Also your comment about the length of the timeout is wrong.
> > 
> Unfortunately these where copy and paste errors in the mail. My mistake.
> 
> 
> thanks for noticing,

The source of your problem isn't obvious.

Here's something you can do to help track it down.  Make sure the
CONFIG_USB_DEBUG option is set in the configuration and rebuild the
uhci-hcd driver.  Then load it with: "modprobe uhci-hcd debug=3".

Next make sure you have a debugfs filesystem mounted somewhere, and load
your driver and wait for those error messages to appear.  When they do,
navigate to the .../uhci/ subdirectory of the debugfs mountpoint and post
a copy of the file corresponding to the host controller that encountered
those errors.  It should let us pinpoint the trouble.

Alan Stern



-------------------------------------------------------
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