"alex" <> wrote in message
news:acr4d7-...
> Hi,
> I wrote a driver for a PCI-E device that is a bit slow to come up (around
> 2 seconds). This is generally not a problem when starting the PC or
> resuming from hibernate. But when I try to resume from standby and my
> driver receives a IRP_MN_SET_POWER for the device, the bus driver returns
> STATUS_NO_SUCH_DEVICE, since the device is not ready yet. I should wait
> for it to come up, but what is the recommended way to do that?
>
If I remember correctly, the PCI and PCIe standard specifies how long
a device can take from power up to make its config space accessible.
If your device takes longer, it is just not PCI compatible,
and you cannot do anything with it, besides hacking the OS
(for example, break with a kernel debugger and wait until the device is
ready).
-- pa
|