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:
Luiz Otavio O Souza 2015-09-12 16:46:41 +00:00
parent a65a997fd9
commit 8fbc5d1840
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287716

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