public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: kernel 2.6: can't get 3c575/PCMCIA working - other PCMCIA card work
Date: Sun, 11 Jan 2004 15:02:23 +0000	[thread overview]
Message-ID: <20040111150223.A8427@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20040111144343.GA8410@piper.madduck.net>; from madduck@madduck.net on Sun, Jan 11, 2004 at 03:43:43PM +0100

On Sun, Jan 11, 2004 at 03:43:43PM +0100, martin f krafft wrote:
> also sprach Russell King <rmk+lkml@arm.linux.org.uk> [2004.01.11.1354 +0100]:
> > Cardbus cards look exactly like normal PCI cards, and are therefore
> > the drivers are handled by the PCI subsystem.  PCMCIA helps out only
> > to detect the card insertion/removal events.
> 
> Are you sure about the latter.

Yes.

> Cause the driver gets loaded whether cardmgr is started or not. But in
> any case, cardmgr does not configure the interface.

cardmgr doesn't play a part when you've inserted a cardbus card - it
doesn't even know that a card has been inserted into the slot.

> Where can I find
> the hook for Cardbus cards to do configuration after initialisation?

It's all done via the hotplug subsystem, which is integrated into the
driver model.

Basically, we discover that a cardbus card has been inserted, and ask
the PCI layer to scan the slot.  We add the new device to the list of
PCI devices, which automatically causes the hotplug system to call
/sbin/hotplug for the new PCI device.

The hotplug scripts are then supposed to load the driver as necessary
(using /etc/modules.conf) which creates a network interface.  This then
causes the hotplug scripts to be invoked again, this time for the new
network interface, which should configure it.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core

  reply	other threads:[~2004-01-11 15:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-06 11:19 kernel 2.6: can't get 3c575/PCMCIA working - other PCMCIA card work martin f krafft
2004-01-11 12:00 ` Russell King
2004-01-11 12:32   ` martin f krafft
2004-01-11 12:54     ` Russell King
2004-01-11 13:09       ` martin f krafft
2004-01-11 14:43       ` martin f krafft
2004-01-11 15:02         ` Russell King [this message]
2004-01-11 16:14           ` martin f krafft

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=20040111150223.A8427@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --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