Re: [PATCH V5 8/8] usb : Add usb port's power control attributes

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

 



On Sat, 30 Jun 2012, Lan Tianyu wrote:

> > Have you given any thought to locking?  For example, what would happen
> > if the port power policy were changed at the same time as a new device
> > was plugged into the port?
> >
> Do you mean while a new device was enumerating, the port powered off? I 
> guess the enumerating process will fail.

That's what I thought too, but I haven't actually tried it.  Something
strange might happen when two different threads send concurrent
messages to the same hub port.  You might want to do a few experiments.

Alan Stern

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