Harald Welte wrote:
As far as I
know, no hub driver exposes an API to do this however -
but I'd love to be wrong about this, so please tell me if anyone knows!
The hub drivers inside the kernel export this via the
set_port_feature(.. USB_PORT_FEAT_POWER) function, which core/hub.c
wraps in the hub_power_on() function.
But it seems like it is only used by suspend/resume and overcurrent
related code paths.
Yes, I haven't seen it available in any userspace API on any system. :\
It may be possible to send the request to the hub from userspace, but
I haven't tried it.
//Peter