Hi,

On Wed, Jan 08, 2003 at 01:39:24PM -0800, Greg KH wrote:
> On Wed, Jan 08, 2003 at 09:32:07PM +0100, Henning Meier-Geinitz wrote:
> > 
> > Anyone any ideas? Just crappy hardware? But why is the error triggered
> > by a simple function like resetep?
> 
> It might be a data toggle problem.

Correct. Further tests show that everytime I use any devio function
that resets the toggle I get problems.

E.g. if I set the configuration by calling libusb's usb_ctrl_msg
directly, no error occurs.

So I guess the device doesn't reset its toggles when it's supposed to.
E.g. it doesn't do it when clear_halt is called.

As the kernel scanner driver doesn't call any function that resets the
toggles, no problem. Probably the BSD scanner driver calls
set_configuration or clear_halt and so the next time the toggle is out
of sync.

> As to how to fix this, I don't know, try inserting something like the
> above somewhere in devio.c when an open happens to see if that helps.

I guess I have to just avoid functions that reset the toggle. Bad luck
for BSD...

Thanks,
  Henning


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to