On Sat, 30 Jun 2012, Lan Tianyu wrote: > >> 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. :) Add ssleep() calls at the right spots. Then you can make anything happen the way you want. :-) > What's concurrent messages? I think even from the two threads, messages > will also be processed in the message queue in order. Right? Yes, they will be. But even so, messages from one thread might occur in between messages from a different thread. 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