svn commit: r252227 - head/sys/dev/bge

Pyun YongHyeon yongari at FreeBSD.org
Wed Jun 26 01:15:41 UTC 2013


Author: yongari
Date: Wed Jun 26 01:15:40 2013
New Revision: 252227
URL: http://svnweb.freebsd.org/changeset/base/252227

Log:
  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 at NetBSD.org>
  Tested by:	Alexander Milanov <a at amilanov.com>

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Wed Jun 26 00:57:38 2013	(r252226)
+++ head/sys/dev/bge/if_bge.c	Wed Jun 26 01:15:40 2013	(r252227)
@@ -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 */


More information about the svn-src-all mailing list