OT: usb hub power switching (Re: Recent librtlsdr and example program don't work)

Peter Stuge peter at stuge.se
Tue May 8 21:47:33 UTC 2012

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.


More information about the osmocom-sdr mailing list