From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhinds Date: Mon, 30 Sep 2002 17:15:45 +0000 Subject: Re: cardmgr and hotplug interplay Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Sep 28, 2002 at 06:29:57PM -0700, David Brownell wrote: > > >However, after I been through both the documentation for pcmcia-cs and > >for linux-hotplug, I'm still confused about what to expect about them > >working together. ... > > The last time this came up, the expectation was that for 2.4 'cardmgr' would > handle the ISA style cards (non-PCI), and hotplugging would handle CardBus > ones (standard PCI hotplugging). That is correct. > As I recall things, cardmgr is tracking this issue for the (one or two...) > PCMCIA drivers it loads. Some of the module changes in 2.5 should IMO > include fixes so that driver unload can work reasonably ... it's not > quite clear to me what's happening there. Yes, the PCMCIA subsystem (and cardmgr) keep track of the number of devices bound to a driver, so drivers are unloaded when there are no longer any bound devices. > >2) I have all respect for the work that the hotplug developers has put > > into the hotplug system. But it appears that cardmgr still > > provides a better handling of the cardbus cards (I haven't tried, > > but I assume that it would be capable of removing the driver > > afterwards). Is there a way letting it not try to handle cardbus > > cards? > > I wouldn't know, but keep in mind that if you go that route you're > suddenly in the business of maintaining lots of entries in that > /etc/pcmcia/config file that are exactly in sync with all the > MODULE_DEVICE_TABLE entries in the PCI drivers ... most of which > are part of the kernel distribution, not the pcmcia package. That > doesn't sound very much "better"! :) It also isn't better (won't work) because cardmgr really only knows how to manage drivers properly if they use the PCMCIA driver API. It will try to load other modules if you tell it to, but when those modules don't register themselves as PCMCIA drivers, it gets confused. -- Dave ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel