Turn off interrupts in pcn_stop().
This commit is contained in:
parent
c524738eae
commit
0642caee99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110495
@ -1400,6 +1400,10 @@ pcn_stop(sc)
|
|||||||
ifp->if_timer = 0;
|
ifp->if_timer = 0;
|
||||||
|
|
||||||
untimeout(pcn_tick, sc, sc->pcn_stat_ch);
|
untimeout(pcn_tick, sc, sc->pcn_stat_ch);
|
||||||
|
|
||||||
|
/* Turn off interrupts */
|
||||||
|
PCN_CSR_CLRBIT(sc, PCN_CSR_CSR, PCN_CSR_INTEN);
|
||||||
|
/* Stop adapter */
|
||||||
PCN_CSR_SETBIT(sc, PCN_CSR_CSR, PCN_CSR_STOP);
|
PCN_CSR_SETBIT(sc, PCN_CSR_CSR, PCN_CSR_STOP);
|
||||||
sc->pcn_link = 0;
|
sc->pcn_link = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user