diff options
author | yongari <yongari@FreeBSD.org> | 2010-08-07 23:41:46 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-08-07 23:41:46 +0000 |
commit | b67da7a96f063e524682ffd4d73508d39c4e7d59 (patch) | |
tree | ef60eceb56bdf76d222f2fed7601b7490afb078f | |
parent | b1b42e7623d89fb8be3ee49dc7fe85eb6144fe14 (diff) | |
download | FreeBSD-src-b67da7a96f063e524682ffd4d73508d39c4e7d59.zip FreeBSD-src-b67da7a96f063e524682ffd4d73508d39c4e7d59.tar.gz |
Do not touch CMB TX threshold register when CMB is not used.
Note, alc(4) does not use CMB at all due to silicon bug.
-rw-r--r-- | sys/dev/alc/if_alc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index 84d2273..0d61b7f 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -2990,10 +2990,10 @@ alc_init_locked(struct alc_softc *sc) */ CSR_WRITE_4(sc, ALC_INTR_RETRIG_TIMER, ALC_USECS(0)); /* Configure CMB. */ - CSR_WRITE_4(sc, ALC_CMB_TD_THRESH, 4); - if ((sc->alc_flags & ALC_FLAG_CMB_BUG) == 0) + if ((sc->alc_flags & ALC_FLAG_CMB_BUG) == 0) { + CSR_WRITE_4(sc, ALC_CMB_TD_THRESH, 4); CSR_WRITE_4(sc, ALC_CMB_TX_TIMER, ALC_USECS(5000)); - else + } else CSR_WRITE_4(sc, ALC_CMB_TX_TIMER, ALC_USECS(0)); /* * Hardware can be configured to issue SMB interrupt based |