public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove a bogus check in sym2 driver
@ 2003-06-24  3:34 Anton Blanchard
  2003-06-24  8:02 ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Anton Blanchard @ 2003-06-24  3:34 UTC (permalink / raw)
  To: linux-scsi; +Cc: akpm


Hi,

The sym2 driver has a check for a very broken bios where it seems 
devices appear twice. This test is broken on a machine with PCI domains
since busnumber:devfn is not a unique identifier.

When we move to the scsi hotplug interface all this code will go away
but in the short term we need the following fix.

Anton

===== drivers/scsi/sym53c8xx_2/sym_glue.c 1.23 vs edited =====
--- 1.23/drivers/scsi/sym53c8xx_2/sym_glue.c	Tue Jun 10 09:09:11 2003
+++ edited/drivers/scsi/sym53c8xx_2/sym_glue.c	Tue Jun 17 10:37:43 2003
@@ -2752,14 +2757,6 @@
 		}
 		/* This one is guaranteed by AC to do nothing :-) */
 		if (pci_enable_device(pcidev))
-			continue;
-		/* Some HW as the HP LH4 may report twice PCI devices */
-		for (i = 0; i < count ; i++) {
-			if (devtbl[i].s.bus       == PciBusNumber(pcidev) && 
-			    devtbl[i].s.device_fn == PciDeviceFn(pcidev))
-				break;
-		}
-		if (i != count)	/* Ignore this device if we already have it */
 			continue;
 		devp = &devtbl[count];
 		devp->host_id = SYM_SETUP_HOST_ID;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-24 11:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-24  3:34 [PATCH] remove a bogus check in sym2 driver Anton Blanchard
2003-06-24  8:02 ` Alan Cox
2003-06-24  8:17   ` Andrew Morton
2003-06-24 11:22     ` Alan Cox
2003-06-24  8:20   ` Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox