On Friday 22 April 2005 7:39 pm, Glenn Maynard wrote: > > I think the "greedy" approach is probably best. > > Based on David's explanation, yes; I'll have it choose the highest-power > configuration <= 100mA, or the lowest power configuration if none fit. > (I have one pen drive, a 128mb Attache, that only reports a 200mA > configuration, > but seems to work fine on my bus-powered hub, even when another device is > connected and set to 500mA. Since these are very common, I can't just reject > devices that don't have a config <= 100mA.)
I'd continue to emit a warning in such cases though. It's true that these configurations commonly work, but it's also true they're not _guaranteed_ to work. Another option is just not to configure the device at all, leaving in "config zero" (the default) which is always allowed to consume 100mA. That much current will always be available (except from OTG hosts). - Dave ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel