From: cinap_lenrek Date: Sun, 15 Nov 2020 13:54:09 +0000 (+0100) Subject: etheriwl: bring back recovery on flushq timeout X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3f835565d5a8366ebb48fd611d3cd902db766b93;p=plan9front.git etheriwl: bring back recovery on flushq timeout --- diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c index 909558b54..f003b5da7 100644 --- a/sys/src/9/pc/etheriwl.c +++ b/sys/src/9/pc/etheriwl.c @@ -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;