svn commit: r241393 - head/sys/dev/bge
Pyun YongHyeon
yongari at FreeBSD.org
Wed Oct 10 05:43:05 UTC 2012
Author: yongari
Date: Wed Oct 10 05:43:04 2012
New Revision: 241393
URL: http://svn.freebsd.org/changeset/base/241393
Log:
Remove unnecessary delay. I don't see any comments in data sheet
that requires 10ms delay after device reset. Because that code was
there from day 1, I guess it was added to give enough settlement
time after updating BGE_MAC_MODE register.
The recommended delay time for BGE_MAC_MODE after updating is 40us
and it was already done in r241219.
Modified:
head/sys/dev/bge/if_bge.c
Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c Wed Oct 10 04:38:29 2012 (r241392)
+++ head/sys/dev/bge/if_bge.c Wed Oct 10 05:43:04 2012 (r241393)
@@ -3784,7 +3784,6 @@ bge_reset(struct bge_softc *sc)
val = CSR_READ_4(sc, 0x7C00);
CSR_WRITE_4(sc, 0x7C00, val | (1 << 25));
}
- DELAY(10000);
if (sc->bge_asicrev == BGE_ASICREV_BCM5720)
BGE_CLRBIT(sc, BGE_CPMU_CLCK_ORIDE,
More information about the svn-src-all
mailing list