From owner-freebsd-arm@FreeBSD.ORG Mon Mar 23 17:14:07 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26DD6C35 for ; Mon, 23 Mar 2015 17:14:07 +0000 (UTC) Received: from bsdpad.com (xc1.bsdpad.com [195.154.136.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E0924CD7 for ; Mon, 23 Mar 2015 17:14:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bsdpad.com) by bsdpad.com with smtp (Exim 4.83 (FreeBSD)) (envelope-from ) id 1Ya5Y2-000GT0-LY; Mon, 23 Mar 2015 16:49:54 +0000 Received: by bsdpad.com (nbSMTP-1.00) for uid 1001 br@bsdpad.com; Mon, 23 Mar 2015 16:49:54 +0000 (GMT) Date: Mon, 23 Mar 2015 16:49:54 +0000 From: Ruslan Bukin To: Ganbold Tsagaankhuu , John Wehle Subject: Re: Updated Amlogic aml8726-m6 and aml8726-m8 support files Message-ID: <20150323164954.GA62598@bsdpad.com> References: <201503192141.t2JLfbv2010733@jwlab.FEITH.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 17:14:07 -0000 On Fri, Mar 20, 2015 at 09:35:17AM +0800, Ganbold Tsagaankhuu wrote: > > > > 1) In dwc_intr change: > > > > ... > > mii_mediachg(sc->mii_softc); > > > > to: > > > > ... > > mii_pollstat(&sc->sc_mii); > > > > in order to prevent the link from excessive flapping when the > > media changed. > > > > While this change worked fine for me with the Amlogic SoC, and > > is also how it's done by the NetBSD driver, Ruslan Bukin reported > > that the change broke the Altera SoC for which he wrote the dwc > > driver. > > > > Can you share ideas on John's question above? > > thanks a lot, > Hi, I have lack of ideas about that. John, if you change mii_mediachg() to mii_pollstat() in the interrupt hander, then changing media works stable for you ? Ruslan