On Mon, 14 Jan 2008, M. Warner Losh wrote:
In message: <[EMAIL PROTECTED]> Warren Block <[EMAIL PROTECTED]> writes: : On Mon, 14 Jan 2008, Warner Losh wrote: : > : > This item is about telling people how to fix N well known problems : > with devices that need quirks. : > : > Eg, if your new device sees a 'No Sync Supported' message, then do : > XYZ. : > : > If you see stalls in with these messages, do ABC. : > : > If you see a stall with those messages, do DEF. : : Is there a test suite that could detect and report these situations?Well, ideally one would code defensively if one could detect the problems. Many of them are 'and then the device locks up solid' kind of failure modes :-( Once you've touched the problem, you lose.
How about a stress test? Something like a benchmark (bonnie?) that pounds the device conclusively, then prints a summary of uname along with USB software and hardware versions.
If it doesn't have errors, doesn't lock up, and the summary prints, that device doesn't need quirks and can be added to the list. Ideally that would have a provision for copying results to a searchable web database. (Might there be something already out there?)
Add/modify quirks until the device works acceptably or smashing it with a hammer becomes the more attractive alternative.
-Warren Block * Rapid City, South Dakota USA _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "[EMAIL PROTECTED]"
