I am writing a WDM driver for a simple PCMCIA card and testing it under
Windows 2000/SP3.

The driver is based on a framework created with Walter Oney's WDM Driver
Wizard. In particular, the Power handling functions are more or less
unchanged.

My problem is, that when the system wakes up from standby mode, Windows
thinks that the hardware has changed and starts the New-Hardware-Wizard.

The driver appears to complete the processing of the power IRPs, but then
receives a IRP_MN_SURPRISE_REMOVAL request, following which the driver is
unloaded.

The New-Hardware-Wizard indicates that it has detected a device named
MTD-0002. I have been advised that this probably means that Wihdows is
unable to read the Card Information Structure (CIS) on the PCMCIA card, but
I can see no reason why this would be the case.

I have set D3Latency parameter to 1000 (100ms) which should be more than
enough.

On inserting the card into the slot, Windows never has any difficulty
reading the CIS, so I don't see why there should be a problem when it is
powered up on leaving standby mode.

Does anybody have any idea what could be causing this effect? I would be
grateful for any help.

Thanks in advance
Phil



(By the way, this is newly developed hardware and the error could be in the
CIS. It is not a big problem for us to reprogam this memory.)

Re: Wakeup problem with PCMCIA card by Eliyas

Eliyas
Thu Jul 03 13:22:51 CDT 2003

According to our PCMCIA bus driver owner, this issue is most certainly a
hardware issue - host controller doesn't work unless there is more of a
delay after switching to D0. He has already put a workaround for this in
Win2K SP4 and XP. Since SP4 is not public yet, try XP with it's latest
Service Pack and let us know.


--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx



Re: Wakeup problem with PCMCIA card by Eliyas

Eliyas
Thu Jul 03 14:12:43 CDT 2003

They did!...without MY approval...zeesh..

http://www.microsoft.com/Windows2000/downloads/servicepacks/sp4/

:-)

-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx



Re: Wakeup problem with PCMCIA card by David

David
Thu Jul 03 14:28:13 CDT 2003

They didn't ask me either. I usually download the network version, so I
don't have to wait when I install. Sometimes I even regenerate the bootable
install CD with the service pack incorporated. Saves a lot of time.

"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:u9WuVcZQDHA.2476@TK2MSFTNGP10.phx.gbl...
> They did!...without MY approval...zeesh..
>
> http://www.microsoft.com/Windows2000/downloads/servicepacks/sp4/
>
> :-)
>
> -Eliyas
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
>
>



Re: Wakeup problem with PCMCIA card by Phil

Phil
Fri Jul 04 10:15:13 CDT 2003

Hi,

thanks for the reply.

I am also inclined to think that it is a hardware problem. I now have a
different version of the hardware which exhibits this behaviour more often
than before (not just after wakeup). Our hardware guys will have to look at
this.

Thanks again,

Phil



Re: Wakeup problem with PCMCIA card by Pavel

Pavel
Sun Jul 06 10:44:24 CDT 2003

"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:Ov41dAZQDHA.3016@TK2MSFTNGP10.phx.gbl...
> According to our PCMCIA bus driver owner, this issue is most certainly a
> hardware issue - host controller doesn't work unless there is more of a
> delay after switching to D0. He has already put a workaround for this in
> Win2K SP4 and XP.


This symptom (R2 card enumerated as MTD) is listed in SP4 fixed bugs list
http://support.microsoft.com/default.aspx?kbid=319326

but with completely differrent reason. will they update this KB article or
add another one?

And by the way - please add "Cardbus" or "Pcmcia" keyword to this article.
The subject is "R2 PC Cards", search for "pcmcia" doesn't find it.

Regards,
--PA