On Tue, May 08, 2012 at 11:03:36PM +0200, Peter Stuge 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.