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 2012/6/30 22:28, Alan Stern wrote:
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.

Ok. I will do some experiments. But I guess it may be hard. Those two operation maybe too quirk to be simultaneous. :)

What's concurrent messages? I think even from the two threads, messages will also be processed in the message queue in order. Right?

Alan Stern



--
Best Regards
Tianyu Lan
linux kernel enabling team
--
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