WdfUsbTargetDeviceResetPortSynchronously takes long time to reset USB device

troy zhu 21 Reputation points
2024-03-04T02:12:11.6+00:00

Hi

  I want to reset USB device,  host driver calls the WDF interface funcion:
```WdfUsbTargetDeviceResetPortSynchronously , It will reset the usb device and  enumerate again.

 But it takes long time to reset USB device, about 30 seconds.  add stop and start all pipes the  cost time no changed.

 But if reset device by reset hardware button on board, it will reset and enumerate at once.

How can i reset USB device just like reset hardware button?  no more than 2 seconds.

Thank you!

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,613 questions
{count} votes

1 answer

Sort by: Most helpful
  1. troy zhu 21 Reputation points
    2024-03-04T02:43:57.2133333+00:00

    the device was reset by WdfUsbTargetDeviceResetPortSynchronously successfully

    the host timeout on this Synchronous function


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.