PCMCIA _detach called after _config

From: Steve Schefter (steve_at_wanware.com)
Date: 10/29/03


Date: 29 Oct 2003 12:16:45 -0800

Hi.

I'm writing driver for a new PCMCIA card. I'm almost there, but not
quite. The driver is registered (register_pccard_driver()) and the
_attach and I get an insertion event to my event handler.

The trouble is, as soon as I return from servicing the insertion event
(calling my _config routine), the _detach routine gets called. If I
understand the internals, this means that an unbind was done.

Anyone know why cardmgr would do this? I see an error in the messages
file:
    cardmgr[2383]: get dev info on socket 1 failed: No such device
However, I believe that is occurring before it calls my _attach
routine and generates the insertion event.

Failing any ideas, where can I find the source to cardmgr? I don't
see a source RPM for the on the RH9 SRPM CDs and Sourceforge doesn't
seem to know anything about cardmgr.
Thanks,
     Steve