From: christophe barbe <christophe.barbe@online.fr>
To: linux-hotplug@vger.kernel.org
Subject: aic7xxx and hotplug
Date: Sun, 14 Oct 2001 19:18:08 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-100308714911492@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]
So following my previous post concerning my APA1480 card, here is a patch
that solve my problem. I intent to push it to the driver maintener if you
agree with it. It only export the pci table but I have to include the
module.h before that.
It works as expected but It's not yet clear in my mind so could you please
try to answer to the following questions:
1. Are we supposed to unload module before removing a card.
When I remove a card I see something like cb_free(20) but the driver is not
unloaded.
I was expecting at least to see something indicating that a device was
removed at the module level (the cb_free comes from the cardbus code
level).
I looks like the removing of the card is not passed to the hotplug code.
2. My undersatnding about cardbus is that is look like a pci2pci bridge.
What's about 16bits pcmcia cards ? Is it possible to integrate this kind of
cards in the hotplug framework (like is ISApnp) ?
3. My adaptec card is often not detected. With the pcmcia-cs stuff it's
detected each time but most of the time the card is seen as a 16 bits card.
Then I imagine that when the hotplug stuff fails to detect my card it's
because it's detected, at the HW level, as a 16 bits card. I suspect that
the problem is with my card and not in my laptop.
This makes sense to you or you think it's a SW bug ?
Thanks,
Christophe
--
Christophe Barbé <christophe.barbe@online.fr>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
[-- Attachment #2: aic7xxx-k2412-bis.patch --]
[-- Type: text/x-patch, Size: 492 bytes --]
--- linux-2.4.11/drivers/scsi/aic7xxx/aic7xxx_linux_pci.c Mon Sep 24 20:30:34 2001
+++ linux-2.4.12/drivers/scsi/aic7xxx/aic7xxx_linux_pci.c Fri Oct 12 19:34:05 2001
@@ -33,6 +33,9 @@
#include "aic7xxx_osm.h"
+#define __NO_VERSION__
+#include <linux/module.h>
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
struct pci_device_id
{
@@ -56,6 +59,8 @@
},
{ 0 }
};
+
+MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table);
struct pci_driver aic7xxx_pci_driver = {
name: "aic7xxx",
next reply other threads:[~2001-10-14 19:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-14 19:18 christophe barbe [this message]
2001-10-15 4:10 ` aic7xxx and hotplug David Hinds
2001-10-15 4:16 ` Greg KH
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-100308714911492@msgid-missing \
--to=christophe.barbe@online.fr \
--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).