I am working with a usb2.0 composite device under winxp which has three interfaces printer,scanner and mass storage device. I have my own host2.0 stack and my composite driver takes care of the device. micrososft client drivers are loaded for the different functions(usbstor.sys,usbprint.sys and usbscan.sys).

I have two problems during suspend/resume.

1. before initiating suspend, i access the mass storage device and leave the explorer associated with it open. after wake up i am able to still access the mass storage device, but i am not not able to access my printer. pls note that this problem does not happen when i close all the documents or the explorer from the mass storage device.

2. when i try to disconnect the device, my parent composite driver deletes all pdo and gets unloaded, when i connect the composite device again, windows says that " the previous instance of the mass storage driver is still in memory and so culdnt load the mass storage driver", in this case mass storage driver is never loaded unless i reboot the system.

i strongly feel that the leaving the handles open from the mass stroage device has got some impact, becos i never encounter such problems when all the handles associated with the mass storage device is closed.

any suggestion is appreciated,

thanks

Re: usb2.0 power management by Maxim

Maxim
Sat Feb 07 21:02:24 CST 2004

> i strongly feel that the leaving the handles open from the mass stroage
device has got some

Power management must work with handles open.

It is removal and surprise removal handling who requires handles to be closed.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com