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:
parent
0783650561
commit
15535e5191
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user