From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: xircom cbem56g-100 support
Date: Sat, 18 Aug 2001 16:49:52 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-99815345122497@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-99808033518406@msgid-missing>
> > Workaround: comment it out of that blacklist.
>
> it now works.
As should be ... :)
> another quick question:
>
> this is a multifuntion card and hotplug loads the network driver, but is
> hotplug or cardmgr responsible for loading the serial driver (esp. since
> i'm testing the in-kernel pcmcia drivers and that means just loading the
> regular serial.o module)?
If this is done with multiple PCI functions, then I'd expect normal
PCI hotplugging to trigger loading the right module.
If the serial function isn't exposed using a PCI function (that is, if
"lspci" doesn't show it) then hotplugging could load "serial.o" by
adding a /etc/modules/pci.handmap functionality ... assuming that
cardmgr is really trying to be ignorant of this card. That's quite
possibly a gap in the current cardbus hotplug support. (Want to
implement such support?)
> and finally, there seems to be a disadvantage of hotplug at this point:
>
> with pcmcia-cs, if you tried to do a cardctl eject when the interface was
> still UP it would return a "ioctl(): Device or resource busy." with
> hotplug, since cardmgr doesn't do the configuration, you can eject a card
> that still has a live interface. i know people should know better. does
> hotplug have functionality similar to "unconfigure and remove?"
I don't know of a good solution for such problems. As I recall,
"cardmgr" and "cardctl" interact through some sort of state that
records driver/hardware bindings. Using just "modutils", that sort
of functionality doesn't exist. The lack shows up in other places;
it's why hotplugging doesn't have an automated way to "rmmod".
What's needed is IMO a generic mechanism that can work for USB,
PCI/Cardbus, and other kinds of hotpluggable drivers. It should
happen automatically when the hardware is removed. Presumably
there should be a software-driven version like "cardctl eject", to
support cleaner device shutdown protocols.
And when power management suspends the host, the clean shutdown
should kick in (devices get removed then). I know that USB needs
some new kernel driver hooks to handle that, we know roughly what
they need to be, but I suspect those new APIs won't get added till
the 2.5 work starts. (Backport should be easy, but every HC driver
needs updating.)
- Dave
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2001-08-18 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-17 20:30 xircom cbem56g-100 support beldridg
2001-08-18 3:50 ` David Hinds
2001-08-18 15:03 ` David Brownell
2001-08-18 15:36 ` beldridg
2001-08-18 16:49 ` David Brownell [this message]
2001-08-19 0:19 ` David Hinds
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=marc-linux-hotplug-99815345122497@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).