From owner-freebsd-net@FreeBSD.ORG Mon Aug 8 08:40:12 2011 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83526106564A for ; Mon, 8 Aug 2011 08:40:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 72B028FC0A for ; Mon, 8 Aug 2011 08:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p788eCMc037836 for ; Mon, 8 Aug 2011 08:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p788eCeX037833; Mon, 8 Aug 2011 08:40:12 GMT (envelope-from gnats) Date: Mon, 8 Aug 2011 08:40:12 GMT Message-Id: <201108080840.p788eCeX037833@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Marius Strobl Cc: Subject: Re: kern/158156: [bce] bce driver shows "no carrier" on IBM blade (HS22 with BCM5709) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marius Strobl List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 08:40:12 -0000 The following reply was made to PR kern/158156; it has been noted by GNATS. From: Marius Strobl To: bug-followup@FreeBSD.org, jsc@ntu.edu.tw Cc: Subject: Re: kern/158156: [bce] bce driver shows "no carrier" on IBM blade (HS22 with BCM5709) Date: Mon, 8 Aug 2011 10:30:27 +0200 --7LkOrbQMr4cezO2T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Could you please test whether the attached patch fixes this? --7LkOrbQMr4cezO2T Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="mii_physubr_reset_default_may_power_down.diff" Index: mii_physubr.c =================================================================== --- mii_physubr.c (revision 224216) +++ mii_physubr.c (working copy) @@ -273,8 +273,8 @@ mii_phy_reset(struct mii_softc *sc) DELAY(1000); } - /* NB: a PHY may default to isolation. */ - reg &= ~BMCR_ISO; + /* NB: a PHY may default to being powered down and isolated. */ + reg &= ~(BMCR_PDOWN | BMCR_ISO); if ((sc->mii_flags & MIIF_NOISOLATE) == 0 && ((ife == NULL && sc->mii_inst != 0) || (ife != NULL && IFM_INST(ife->ifm_media) != sc->mii_inst))) --7LkOrbQMr4cezO2T--