From mboxrd@z Thu Jan 1 00:00:00 1970 From: christophe barbe Date: Sun, 14 Oct 2001 19:18:08 +0000 Subject: aic7xxx and hotplug MIME-Version: 1 Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA" Message-Id: List-Id: To: linux-hotplug@vger.kernel.org --AWniW0JNca5xppdA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.=20 This makes sense to you or you think it's a SW bug ?=20 Thanks, Christophe --=20 Christophe Barb=E9 GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E --AWniW0JNca5xppdA Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="aic7xxx-k2412-bis.patch" --- 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 + #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", --AWniW0JNca5xppdA-- _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel