Ilya,
Ah, now I understand. Your intention wasn’t clear to me which could be my reading ![:slight_smile: :slight_smile:](/images/emoji/twitter/slight_smile.png?v=12)
Well, I’m afraid you can’t count with anything and have to solve it yourself. Quick USB devices reconnects are pain; we created a hw/sw tool just for testing it and in many times saw running remove/add new paths in parallel (never measured times between entry points). Older OS versions crashed often with this test, at least this improved.
I presume you know it but removal finish can be blocked by opened device handle and two device instances can live forever.
Michal
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-460941-
xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Thursday, June 23, 2011 12:04 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB Device Driver Restart Time
Michal,
Good points all… Chances are I was not clear enough. I don’t mind the
surprise removal at all. In fact, just as you say, I do need it for all the relevant
reasons. I’m just asking for a few more milliseconds to process the removal
before another instance is started.
I’ve actually done something of that sort in one of my bus drivers many
moons ago. Once the bus needed to plug a new PDO in at an address where
the removal was taking place, the bus driver waited some to let that removal
complete. If the removal was still not done upon a certain timeout (basically
never in operation), the PDO was placed at a new unique address which was
undesirable. I hope USB bus driver could be that nice too.
Thanks,
-Ilya
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@authentec.com
Sent: Wednesday, June 22, 2011 14:40 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB Device Driver Restart Time
Ilya,
OS would have to cache all the device info (descriptors) and compare. Still,
the device may not be in the same state which’d make confusion for
software already using the existing device. In our case communication
session would be broken, for some devices fw patches disappearing etc.
Surprise removal is the only way how everybody can get info about
disconnect and reconnect.
Hardware switch can be software driven ![:wink: :wink:](/images/emoji/twitter/wink.png?v=12)
Michal
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NOTE: The information in this message is intended for the personal and confidential use of the designated recipient(s) named above. To the extent the recipient(s) is/are bound by a non-disclosure agreement, or other agreement that contains an obligation of confidentiality, with AuthenTec, then this message and/or any attachments shall be considered confidential information and subject to the confidentiality terms of that agreement. If the reader of this message is not the intended recipient named above, you are notified that you have received this document in error, and any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this document in error, please delete the original message and notify the sender immediately.
Thank You!
AuthenTec, Inc. http://www.authentec.com/