2005/12/18, Alan Stern <[EMAIL PROTECTED]>: > On Sun, 18 Dec 2005, David Brownell wrote: > > > > nope, my hcd->power_budget is set to 500mA. This error is printed by > > > hub_port_connect_change in hub.c. The condition that refuses the new > > > device is not related to power budget, is it ? > > > > Try not setting that power budget. There's a glitch in how root port > > budgets are calculated ... it works for "normal" root hubs (no budget, > > meaning 500 mA), and for OTG roots (8 mA budget, bus powered is never > > OK), but not for other cases. >
I'm not sure to understand that. > The new code is supposed to work okay, even with values between 0 and 500. > If it doesn't, maybe Franck has found a real problem with it. > setting hcd->power_budget to 0 (meaning power budget illimeted) fixes the problem. I actually do not understand that comment that can be found in hub.c: /* consecutive bus-powered hubs aren't reliable; they can * violate the voltage drop budget. [...] */ if (udev->descriptor.bDeviceClass == USB_CLASS_HUB && hub->power_budget && (devstat & (1 << USB_DEVICE_SELF_POWERED)) == 0) { /* FAIL */ } In my case, hub is the root hub and hub->power_budget is set to 250. the connected device is an embedded hub which is bus powered. So it fails. Could you put some ligth on that point ? Thanks -- Franck ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel