Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2013 01:15:40 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252227 - head/sys/dev/bge
Message-ID:  <201306260115.r5Q1FeFQ027037@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@NetBSD.org>
  Tested by:	Alexander Milanov <a@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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306260115.r5Q1FeFQ027037>