Skip to contentSkip to conversation

aic7xxx: do not check for duplicate pci ids

PATCH In review Christoph Hellwig 2 participants 3 messages Jun 10, 2005 – Jun 11, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aic7xxx: do not check for duplicate pci ids

pci layer handles this just fine for us

drivers/scsi/aic7xxx/aic7xxx_osm_pci.c +0 -16
Index: scsi-misc-2.6/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
===================================================================
@@ -164,22 +164,6 @@
 	char		*name;
 	int		 error;
 
-	/*
-	 * Some BIOSen report the same device multiple times.
-	 */
-	TAILQ_FOREACH(ahc, &ahc_tailq, links) {
-		struct pci_dev *probed_pdev;
-
-		probed_pdev = ahc->dev_softc;
-		if (probed_pdev->bus->number == pdev->bus->number
-		 && probed_pdev->devfn == pdev->devfn)
-			break;
-	}
-	if (ahc != NULL) {
-		/* Skip duplicate. */
-		return (-ENODEV);
-	}
-
 	pci = pdev;
 	entry = ahc_find_pci_device(pci);
 	if (entry == NULL)
#2 lore raw
Quoted 7 lines · On Sat, Jun 11, 2005 at 07:34:35PM +0100, [email protected]…
Quoted 4 lines · Christoph Hellwig

pci layer handles this just fine for us

Is there a similar patch for aic79xx?

and equivalent patch would apply, but probably conflict with other pending changes. Let's get transport class support finished for aic79xx adn then we can port over misc cleanups.