From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: Kernel PCMCIA
Date: 25 Oct 2001 10:12:06 -0700 [thread overview]
Message-ID: <9r9h56$2ai$1@cesium.transmeta.com> (raw)
In-Reply-To: <3BD843DE.6FD5AF2D@nyc.rr.com>
In article <3BD843DE.6FD5AF2D@nyc.rr.com>,
John Weber <weber@nyc.rr.com> wrote:
>
>Why are hotplug and cardmgr needed? As I understand it, cardbus uses
>hotplug for config/init, and other pcmcia cards use cardmgr for init and
>/etc/pcmcia/* for config. This seems like a big, smelly mess.
I'd personally love to get rid of cardmgr, and in fact you do not need
it with true 32-bit cards and proper PCI drivers, because the drivers
have sane plug/unplug semantics.
In fact, with CardBus cards, you don't strictly need /sbin/hotplug
either: /sbin/hotplug is nothing but a _notification_ thing, and as such
you can easily for example just compile the proper PCI driver into the
kernel, and the driver will automatically find and configure the card,
and if you don't insert/remove it at run-time you can consider the
CardBus slot just another PCI slot.
So the "/sbin/hotplug" is really not a cardbus thing at all: it's just
the kernels way of telling user space that "hey, you might want to load
a driver" (if the kernel didn't find one pre-loaded) or "hey, I just got
a new network card, maybe you should set up routing etc?"
In fact /sbin/hotplug works well for non-CardBus events too, like USB.
Now comes the ugly part.
When I wrote the new CardBus code I didn't want to know about how 16-bit
PCMCIA works (I still mostly don't, but the pain of having to have
cardmgr might some day push me over the edge), so 16-bit PCMCIA cards
are handled with all the old legacy stuff, and they don't understand
about /sbin/hotplug and friends.
If somebody who knows 16-bit PCMCIA wants to change the "hey, I need a
driver" code to use /sbin/hotplug and not need cardmgr, I'd be thrilled.
>I don't use modules, so I don't use cardmgr for anything except to tell
>the kernel that there is a card in the socket.
You shouldn't even need that, if the 16-bit PCMCIA drivers weren't too
damn helpless..
Linus
next prev parent reply other threads:[~2001-10-25 17:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-25 16:54 Kernel PCMCIA John Weber
2001-10-25 17:12 ` Linus Torvalds [this message]
2001-10-25 17:15 ` Alan Cox
-- strict thread matches above, loose matches on Subject: below --
2001-09-23 18:07 kernel pcmcia John Weber
2001-09-23 20:06 ` David Woodhouse
2001-09-24 0:55 ` Eric W. Biederman
2001-09-27 14:27 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='9r9h56$2ai$1@cesium.transmeta.com' \
--to=torvalds@transmeta.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox