On Wednesday 18 May 2005 8:42 pm, [EMAIL PROTECTED] wrote:

> What I would like to know is: which IOCTL, system call, /proc or /sysfs
> file can provide me the information that certain USB device is causing
> overcurrent condition on an external hub?

Have a look at how "lsusb" fetches port status from hubs...

Notice by the way that "overcurrent condition" is a hardware
report, but the messages you showed were software warnings
about exceeding the power budget.  Those are two different
things.  You can compute the power budget following the rules
in the USB spec and the current device configuration as
shown in sysfs ... except for the case of root hubs that
have nondefault power budgets (less than 500 mA per port).

- Dave


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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

Reply via email to