svn commit: r214292 - head/sys/dev/bge
Pyun YongHyeon
yongari at FreeBSD.org
Sun Oct 24 20:54:47 UTC 2010
Author: yongari
Date: Sun Oct 24 20:54:46 2010
New Revision: 214292
URL: http://svn.freebsd.org/changeset/base/214292
Log:
Use bge_chipid to compare controller ids. r214251 incorrectly used
bge_chiprev.
Reported by: Buganini <buganini <> gmail dot com >
Modified:
head/sys/dev/bge/if_bge.c
Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c Sun Oct 24 20:45:13 2010 (r214291)
+++ head/sys/dev/bge/if_bge.c Sun Oct 24 20:54:46 2010 (r214292)
@@ -1695,9 +1695,9 @@ bge_blockinit(struct bge_softc *sc)
/* Choose de-pipeline mode for BCM5906 A0, A1 and A2. */
if (sc->bge_asicrev == BGE_ASICREV_BCM5906) {
- if (sc->bge_chiprev == BGE_CHIPID_BCM5906_A0 ||
- sc->bge_chiprev == BGE_CHIPID_BCM5906_A1 ||
- sc->bge_chiprev == BGE_CHIPID_BCM5906_A2)
+ if (sc->bge_chipid == BGE_CHIPID_BCM5906_A0 ||
+ sc->bge_chipid == BGE_CHIPID_BCM5906_A1 ||
+ sc->bge_chipid == BGE_CHIPID_BCM5906_A2)
CSR_WRITE_4(sc, BGE_ISO_PKT_TX,
(CSR_READ_4(sc, BGE_ISO_PKT_TX) & ~3) | 2);
}
More information about the svn-src-head
mailing list