Re: USB port power off discussion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sarah Sharp wrote:
> > > 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.

dmesg isn't very programmable. Maybe ioctl after all? Trust me that I
don't have a preference, it's just that I don't know how sysfs could
report back the relevant failure info in a race-free way.


//Peter
--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux