Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Double the time we wait for the attention bit fo...



details:   https://anonhg.NetBSD.org/src/rev/518b46bd967d
branches:  trunk
changeset: 567169:518b46bd967d
user:      heas <heas%NetBSD.org@localhost>
date:      Thu Jun 03 18:07:30 2004 +0000

description:
Double the time we wait for the attention bit following a soft reset (and make
the timeout message just a bit clearer), as the latest firmware appears to be
a bit slower.
OK from Jason Thorpe.

diffstat:

 sys/dev/pci/twe.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r d9ad477077a9 -r 518b46bd967d sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Thu Jun 03 16:48:53 2004 +0000
+++ b/sys/dev/pci/twe.c Thu Jun 03 18:07:30 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: twe.c,v 1.56 2004/05/27 23:47:23 thorpej Exp $ */
+/*     $NetBSD: twe.c,v 1.57 2004/06/03 18:07:30 heas Exp $    */
 
 /*-
  * Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.56 2004/05/27 23:47:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.57 2004/06/03 18:07:30 heas Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -652,8 +652,8 @@
            TWE_CTL_DISABLE_INTRS);
 
        /* Wait for attention... */
-       if (twe_status_wait(sc, TWE_STS_ATTN_INTR, 15)) {
-               printf("%s: no attention interrupt\n",
+       if (twe_status_wait(sc, TWE_STS_ATTN_INTR, 30)) {
+               printf("%s: timeout waiting for attention interrupt\n",
                    sc->sc_dv.dv_xname);
                return (-1);
        }



Home | Main Index | Thread Index | Old Index