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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Tue May 8 21:19:13 UTC 2012


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.

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)




More information about the osmocom-sdr mailing list