I am writing a driver for a usb device that contains a hardware watchdog. At
this time, as well as during firmware updates, the device can be reset. The
PC then shows the device (using usbview) as failing enumeration and of course
my driver is unloaded.
If I try to reset the device using devcon restart usb* I get the "requires
reboot" message next to my device. But then it sometimes works anyway?
I'm thinking that I need IOCTL_INTERNAL_USB_RESET_PORT but I can't quite
figure out where to use it. My driver is unloading, do I send it on the way
down? Or do I then do it on the driver restarting and I still need the
devcon functionality.
thanks