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.

Reply via email to