]> git.lizzy.rs Git - plan9front.git/commitdiff
etheriwl: bring back recovery on flushq timeout
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 15 Nov 2020 13:54:09 +0000 (14:54 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 15 Nov 2020 13:54:09 +0000 (14:54 +0100)
sys/src/9/pc/etheriwl.c

index 909558b54152d39b40f516b26a7347988c78784d..f003b5da7160b138366345decf87b4213b121d69 100644 (file)
@@ -3502,6 +3502,7 @@ flushq(Ctlr *ctlr, uint qid)
        qunlock(q);
        if(ctlr->broken)
                return "flushq: broken";
+       ctlr->broken = 1;
        return "flushq: timeout";
 }
 
@@ -4296,6 +4297,7 @@ iwlshutdown(Ether *edev)
        if(ctlr->power)
                poweroff(ctlr);
        ctlr->broken = 0;
+       pcidisable(ctlr->pdev);
 }
 
 static Ctlr *iwlhead, *iwltail;