with reference to this thread: http://www.osronline.com/showThread.cfm?link=199712
- I have written a scsi/ide port filter which translates the pnp-ids.
- I have a class driver which should load for the disk whose pnp ids I translated.
It works as expected for all (MS, Intel) but AMD driver. With AMD driver sometimes my class driver gets loaded and sometimes not. I suspect this is because of AMD port driver reports the capabilities flag as RawDeviceOk.
And I think there is a race condition - sometimes Pnp manager is starting the disk pdo (as port driver reported RawDeviceOk) before looking for the custom disk driver while sometimes it is loading the custom disk driver.
I tried clearing the RawDeviceOk flag in DEVICE_CAPABILITIES on the completion path of QUERY_CAPABILITIES but then neither pdo got a START call (which is expected) nor my custom driver got loaded. Probably Pnp manager remembers this?
Any help will be highly appreciated? Thank you.