Use bge_chipid to compare controller ids. r214251 incorrectly used

bge_chiprev.

Reported by:	Buganini <buganini <> gmail dot com >
This commit is contained in:
yongari 2010-10-24 20:54:46 +00:00
parent e5f0dbf76c
commit 8b92400c86

View File

@ -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);
}