On Fri, Sep 21, 2012 at 08:54:38PM +0200, Peter Stuge wrote: > Sarah Sharp wrote: > > > How will userspace know why powering off the port does not work? > > > > We can expose the power resources in sysfs, so userspace can figure out > > which ports are under which power resources. > > Sorry, I should have clarified. > > > > If userspace really wants the port off (e.g. to disconnect and > > reconnect a misbehaving device), then it can set the sysfs file > > to off. > > And unless all ganged ports are also off it will fail. Userspace will > want to know about that, and why, along with a reference that can be > matched against the list of ganged sets of ports. Ah, right. Yes, we should probably add some dmesg info lines about why we can't turn off a port right now. Sarah Sharp -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html