Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci 5718 and 57785 document say we should wait 100us.



details:   https://anonhg.NetBSD.org/src/rev/7e826f07b143
branches:  trunk
changeset: 785627:7e826f07b143
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sat Mar 23 19:40:43 2013 +0000

description:
5718 and 57785 document say we should wait 100us.

diffstat:

 sys/dev/pci/if_bge.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r be9734d4b035 -r 7e826f07b143 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Sat Mar 23 18:15:06 2013 +0000
+++ b/sys/dev/pci/if_bge.c      Sat Mar 23 19:40:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.223 2013/03/21 12:56:03 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.224 2013/03/23 19:40:43 msaitoh Exp $     */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.223 2013/03/21 12:56:03 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.224 2013/03/23 19:40:43 msaitoh Exp $");
 
 #include "vlan.h"
 
@@ -2932,6 +2932,10 @@
 
        /* Set misc. local control, enable interrupts on attentions */
        CSR_WRITE_4(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
+       if (BGE_IS_5717_PLUS(sc)) {
+               CSR_READ_4(sc, BGE_MISC_LOCAL_CTL); /* Flush */
+               DELAY(100);
+       }
 
        /* Turn on DMA completion state machine */
        if (!(BGE_IS_5705_PLUS(sc)))



Home | Main Index | Thread Index | Old Index