summaryrefslogtreecommitdiffstats
path: root/sys/dev/alc
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-08-07 23:41:46 +0000
committeryongari <yongari@FreeBSD.org>2010-08-07 23:41:46 +0000
commitb67da7a96f063e524682ffd4d73508d39c4e7d59 (patch)
treeef60eceb56bdf76d222f2fed7601b7490afb078f /sys/dev/alc
parentb1b42e7623d89fb8be3ee49dc7fe85eb6144fe14 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/dev/alc')
-rw-r--r--sys/dev/alc/if_alc.c6
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
OpenPOWER on IntegriCloud