]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Do not call mii_mediachg() from NIC interrupt handler.
authorloos <loos@FreeBSD.org>
Sat, 12 Sep 2015 16:46:41 +0000 (16:46 +0000)
committerloos <loos@FreeBSD.org>
Sat, 12 Sep 2015 16:46:41 +0000 (16:46 +0000)
This fixes the link instability on banana pi (A20).

Suggested by: yongari

sys/dev/dwc/if_dwc.c

index 939ce541a5b500e99bd004ffbf319a38b8e04b22..5d28f9fe7c4f2b32e2612474d4777ca35d75324a 100644 (file)
@@ -821,10 +821,8 @@ dwc_intr(void *arg)
        DWC_LOCK(sc);
 
        reg = READ4(sc, INTERRUPT_STATUS);
-       if (reg) {
-               mii_mediachg(sc->mii_softc);
+       if (reg)
                READ4(sc, SGMII_RGMII_SMII_CTRL_STATUS);
-       }
 
        reg = READ4(sc, DMA_STATUS);
        if (reg & DMA_STATUS_NIS) {