On Tue, 1 Jul 2003, David Brownell wrote: > Alexander Dreweke wrote: > > > Oh, ok I've forgot to give you one more information, I'm programming a > > HC driver for an operating system. So I have to take care of such > > things. :o) So now my question makes a bit more sense i hope > > For Linux? > > > > Does the device drive have to take care of resetting the endpoint after > > it has been stalled, because of an toggle error, or is this something > > that could (or should) be handled by the HC driver? > > Endpoint halts are status that the device driver has to handle. > Don't create any kind of automagic policy; insist that the > device driver explicitly reset the endpoint halt status. > It's a signal from the device to its driver that something > went wrong and needs attention; there's no automagic that > any HCD could apply, and yet keep things sane. > > And arrange that the HCD sees when the halt has been cleared, > and resets the HC's toggle state accordingly.
David Brownell is correct. The HC driver can't know the reason why an endpoint stalled; it could be for many different reasons, not just a bad toggle. So the HC driver shouldn't be responsible for clearing the halt -- the device driver should do that. Alan Stern ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel