On Wed, 14 Jan 2004, David Brownell wrote:

> > No, no!  The URB's Axel is seeing are not being sent to his device; they 
> > are root hub status queries.  Normally these don't show up very much 
> 
> That would make sense (HZ/4) but that wasn't clear from his message.

It would have been clearer if you had seen that sort of thing happen many 
times before, as I have (unfortunately).

> Sounds just like one of those issues you were looking at in terms of
> upcoming reset/disconnect patches, now that you mention it ... :)

Actually it's more closely related to the idea of having khubd use 
subsidiary threads to handle connects and disconnects.  A long-running 
disconnect routine wouldn't block the main khubd thread, leaving it free 
to respond to status change reports.


> I wonder if it'd be useful to add some selective URB tracing machinery
> into usbcore.  At the level of:  atomic_set some device flag to turn
> on some level of submit/giveback dev_*() tracing for urbs going to that
> device (or interface).  Probably with a sysfs API too.
> 
> There could be a "verbose" tell-all setting, and there could be a
> mode that'd only show the fault report/recovery paths (zero volume
> in normal usage, so safe to leave on most of the time).
> 
> I suspect that having such standardized debug/trace information
> would make some kinds of remote troubleshooting a lot easier ...

That seems like a good idea to me.  On the other hand, I recall Greg KH 
stating not too long ago that with an open-source system such as Linux you 
really don't need any way to trace things like USB messages... :-)

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to