Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2015 16:49:54 +0000
From:      Ruslan Bukin <br@freebsd.org>
To:        Ganbold Tsagaankhuu <ganbold@gmail.com>, John Wehle <john@feith.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Updated Amlogic aml8726-m6 and aml8726-m8 support files
Message-ID:  <20150323164954.GA62598@bsdpad.com>
In-Reply-To: <CAGtf9xOeG_q2r=j_zp5bPBiDQe=%2B1AfsZ3%2B9XEjPaime31uMdg@mail.gmail.com>
References:  <201503192141.t2JLfbv2010733@jwlab.FEITH.COM> <CAGtf9xOeG_q2r=j_zp5bPBiDQe=%2B1AfsZ3%2B9XEjPaime31uMdg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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