I am developing a Storport Miniport driver, and I came across a strange problem today.
I have below sample routines:
//I have registered only SCSI_STOP_ADAPTER.
I installed the driver, driverentry -> FindAdapter -> HwInit -> PassiveInit -> AdapterControl Executed in Sequence. Driver successfully installed.
Then I did a Power Off(Cold) and Powerd On the PC, Since I didn't register ScsiRestartAdapter in adapter power control routine, I was expecting Findadapter, hwinit,and PassiveInit to be called. But the strange part is only Findadapter and HwInit was getting called not PassiveInit().
Eventhough StorPortEnablePassiveInitialization(PassiveInit) was returing TRUE. still PassiveInit was not getting called.
Any suggestion would be helpful.
Thanks in advance,