summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2013-06-26 01:15:40 +0000
committeryongari <yongari@FreeBSD.org>2013-06-26 01:15:40 +0000
commitd384fab46dcb5a2ed01ae66669b3ce5ea5d0ff8a (patch)
tree5bfab7f3244b380dab6e1a5302d9c49c565e3096 /sys/dev/bge
parent4201cd7bd1c5bed3d57c96c4df0cdd038d6125bf (diff)
downloadFreeBSD-src-d384fab46dcb5a2ed01ae66669b3ce5ea5d0ff8a.zip
FreeBSD-src-d384fab46dcb5a2ed01ae66669b3ce5ea5d0ff8a.tar.gz
Don't blidly clear GPIOs configuration. Just use firmware configured
one. This change also fixes non-working traffic LED on BCM57780. Submitted by: Masanobu SAITOH <msaitoh@NetBSD.org> Tested by: Alexander Milanov <a@amilanov.com>
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 1a637f5..ff1f030 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -2401,7 +2401,7 @@ bge_blockinit(struct bge_softc *sc)
DELAY(40);
/* Set misc. local control, enable interrupts on attentions */
- CSR_WRITE_4(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
+ BGE_SETBIT(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
#ifdef notdef
/* Assert GPIO pins for PHY reset */
OpenPOWER on IntegriCloud