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 23:22, Alan Stern wrote:
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.  :-)
Good suggestion. Thanks. I will do.

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



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