From 15535e5191edae0ccdb5479e9591a466014d98d7 Mon Sep 17 00:00:00 2001 From: loos Date: Sat, 12 Sep 2015 16:46:41 +0000 Subject: [PATCH] Do not call mii_mediachg() from NIC interrupt handler. This fixes the link instability on banana pi (A20). Suggested by: yongari --- sys/dev/dwc/if_dwc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c index 939ce541a5b5..5d28f9fe7c4f 100644 --- a/sys/dev/dwc/if_dwc.c +++ b/sys/dev/dwc/if_dwc.c @@ -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) {