Module Name: src
Committed By: msaitoh
Date: Sat Mar 23 19:40:44 UTC 2013
Modified Files:
src/sys/dev/pci: if_bge.c
Log Message:
5718 and 57785 document say we should wait 100us.
To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/sys/dev/pci/if_bge.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.223 src/sys/dev/pci/if_bge.c:1.224
--- src/sys/dev/pci/if_bge.c:1.223 Thu Mar 21 12:56:03 2013
+++ src/sys/dev/pci/if_bge.c Sat Mar 23 19:40:43 2013
@@ -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 @@ bge_blockinit(struct bge_softc *sc)
/* 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)))