Skip to contentSkip to conversation

cardmgr and hotplug interplay

Pcmcia-cs-devel Miles Lane 1 participant 1 message Sep 30, 2002

lore
Share & tools
lore

Miles Lane

author
#0 lore raw
Quoted 35 lines · dhinds
Quoted 8 lines · David Brownell
Quoted 4 lines

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.

Quoted 4 lines

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.

Quoted 7 lines
Quoted 6 lines

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?

Quoted 6 lines

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"! :)

Quoted 4 lines

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.

Well, where do we go from here?

David Woodhouse offered to spearhead the effort of adding PCMCIA device support to the /sbin/hotplug system when he got some free time, but it seems he never had enough free time to make it happen. My understanding is that the two of you have had some discussion of the possibilities and that there is some code that David has that he doesn't feel is ready for general consumption.

Miles

-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel