Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Make all 23XX cards 'touched'. We seem to, too o...



details:   https://anonhg.NetBSD.org/src/rev/58f67604ba37
branches:  trunk
changeset: 532779:58f67604ba37
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Sat Jun 15 00:11:36 2002 +0000

description:
Make all 23XX cards 'touched'. We seem to, too often, hang when trying
to run ABOUT FIRMWARE at the first isp_reset call. We *do* check for
the registers being set with values which would tell us if there's
firmware running or not- but this seems to not always work. It's not
essential, so move on.

diffstat:

 sys/dev/pci/isp_pci.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3bb7dc36cca7 -r 58f67604ba37 sys/dev/pci/isp_pci.c
--- a/sys/dev/pci/isp_pci.c     Sat Jun 15 00:10:17 2002 +0000
+++ b/sys/dev/pci/isp_pci.c     Sat Jun 15 00:11:36 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_pci.c,v 1.80 2002/05/17 19:05:08 mjacob Exp $ */
+/* $NetBSD: isp_pci.c,v 1.81 2002/06/15 00:11:36 mjacob Exp $ */
 /*
  * This driver, which is contained in NetBSD in the files:
  *
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isp_pci.c,v 1.80 2002/05/17 19:05:08 mjacob Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isp_pci.c,v 1.81 2002/06/15 00:11:36 mjacob Exp $");
 
 #include <dev/ic/isp_netbsd.h>
 #include <dev/pci/pcireg.h>
@@ -582,6 +582,9 @@
        if (IS_2300(isp)) {     /* per QLogic errata */
                data &= ~PCI_COMMAND_INVALIDATE_ENABLE;
        }
+       if (IS_23XX(isp)) {
+               isp->isp_touched = 1;
+       }
        pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, data);
 
        /*



Home | Main Index | Thread Index | Old Index