From owner-svn-src-all@FreeBSD.ORG Wed Jun 26 01:15:40 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E1C04E55; Wed, 26 Jun 2013 01:15:40 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D0EA51F6C; Wed, 26 Jun 2013 01:15:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5Q1FeYi027038; Wed, 26 Jun 2013 01:15:40 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5Q1FeFQ027037; Wed, 26 Jun 2013 01:15:40 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <201306260115.r5Q1FeFQ027037@svn.freebsd.org> From: Pyun YongHyeon Date: Wed, 26 Jun 2013 01:15:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252227 - head/sys/dev/bge X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 01:15:41 -0000 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 Tested by: Alexander Milanov 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 */