Hello,
I am developing a USB mass storage driver for windows 2000. (This
device need some special commands, so the default microsoft driver
(usbstor.sys) will not work on this device).
There are two components, 1. SCSI Mini port driver 2. USB WDM driver. When
plug in the device, the WDM driver enumerates a child device and load the
plug and play scsi miniport driver. The scsi miniport driver send the srb to
the USB WDM driver. The USB WDM driver physically talk to the device and
write/read data to the device and return data/status to the miniport
driver. This is the way, it works. Read/ write functionality and plug/
unplug functionality is working fine.
The problem:
When I standby the system, I get the following error and get a blue
screen,
Bug Check 0x9F: DRIVER_POWER_STATE_FAILURE
The DRIVER_POWER_STATE_FAILURE bug check has value 0x0000009F. This
signifies that the driver is in an inconsistent or invalid power state.
Parameter1 = 100
The device objects in the devnode were inconsistent in their use of
DO_POWER_PAGABLE.
My either drivers (scsi miniport’s AdapterControl routine and USB
WDM driver’s IRP_MJ_POWER) didn’t get any call when I standby.
Thanx for any help or suggestion.
Regards,
Bala