|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: brgphy: reset autonegotiation timer when we get the link
From: Mike Belopuhov (mike
belopuhov.com)
Date: Wed May 22 2013 - 10:59:19 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, May 21, 2013 at 17:16 +0200, Mike Belopuhov wrote:
> from freebsd. ok?
>
ping!
> diff --git sys/dev/mii/brgphy.c sys/dev/mii/brgphy.c
> index 7f0bae2..461c798 100644
> --- sys/dev/mii/brgphy.c
> +++ sys/dev/mii/brgphy.c
> 
-412,8 +412,10 
setit:
> * the BMSR twice in case it's latched.
> */
> reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR);
> - if (reg & BMSR_LINK)
> + if (reg & BMSR_LINK) {
> + sc->mii_ticks = 0; /* Reset autoneg timer. */
> break;
> + }
>
> /*
> * Only retry autonegotiation every mii_anegticks seconds.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]