Do not call mii_mediachg() from NIC interrupt handler.

This fixes the link instability on banana pi (A20).

Suggested by:	yongari
This commit is contained in:
loos 2015-09-12 16:46:41 +00:00
parent 0783650561
commit 15535e5191

View 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) {