From mboxrd@z Thu Jan 1 00:00:00 1970 From: christophe barbe Date: Thu, 11 Oct 2001 19:55:49 +0000 Subject: Re: Adaptec SlimSCSI 1480A MIME-Version: 1 Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --AWniW0JNca5xppdA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've tried your modifications with the 2.4.12 upgrade. I've applied the attached patch. The pcimaps file still doesn't include any reference to the aic7xxx modules even if the module is there. It works if I modprobe it. What's the best tool to debug hotplug stuff (or my brain)? Thank you,=20 Christophe Le 2001.10.11 02:00:30 +0200, Greg KH a =E9crit : > On Wed, Oct 10, 2001 at 11:28:22PM +0200, christophe barbe wrote: > > After further investigation, it appears that : > >=20 > > . My card is sometimes detected. > > it looks like a mechanical problem. After 20 insertion, the > card is > > finally datected and I see: > > cs: cb_alloc(bus 20): vendor 0x9004, device 0x6075 > > PCI: Enabling device 14:00.0 (0000 -> 0003) > >=20 > > . The driver is not loaded automatically. > > If I understand correctly it is because the aic7xxx is not define in > the > > /lib/modules/2.4.11/modules.pcimaps file. > >=20 > > Why AIC7xxx is not define in modules.pcimaps ? >=20 > Because the author of that driver has not included the proper chunk of > code in the driver. Could you add the line: >=20 > MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table); >=20 > at the end of aic7xxx_linux_pci.c, rebuild everything, reinstall the > modules, and then see if the autoloading stuff works? >=20 > thanks, >=20 > greg k-h >=20 > _______________________________________________ > 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 >=20 --=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.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 Thu Oct 11 19:41:45 2001 @@ -57,6 +57,8 @@ { 0 } }; +MODULE_DEVICE_TABLE(pci, ahc_linux_pci_id_table); + struct pci_driver aic7xxx_pci_driver = { name: "aic7xxx", probe: ahc_linux_pci_dev_probe, --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