Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCMCIA Race condition after sleep



On Monday, February 24, 2003, at 10:02 AM, Wayne Flansburg wrote:

Hello Matthew, please try this code to see if it helps.

No change. The difference between your code and mine is it calls pmInit and provider->joinPMtree, but the IONetworkController had already done that.

As it turns out the scenario is more complicated that I had thought under 10.2.3:

1) Insert card, wait for it to initialize
2) Put machine to sleep
3) Remove card
4) Wake machine up.
5) Insert card while machine is in the midst of waking up
6) The driver's "start" routine is called, and at some point the driver's "registerWithPolicyMaker" routine is called
7) registerWithPolicyMaker calls policyMaker->registerPowerDriver(this, myPowerStates, myPowerStateCount)
8) Before that call returns, the driver's setPowerState is called with a power state of 0 (device off)
9) setPowerState is not called again.

Under 10.2.4, steps 3 and 5 are not necessary, reportedly.
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: PCMCIA Race condition after sleep (From: Wayne Flansburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.