summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-10-18 10:50:07 -0400
committerOri Bernstein <ori@eigenstate.org>2020-10-18 10:50:07 -0400
commit83efe2f157743feb3f5b6bbb1e34ee56ab3a6dad (patch)
tree105dbc49a66f736363832185c3aa8f9c59107cfb
parent98c07541bb2f769253d6077c8f6acc002c831186 (diff)
etheriwl: delay before crystal calibration
On my 6235 card, if we calibrate the crystal immediately after disabling wimax, the the firmware gets unhappy. A short nap before sending the command prevents the command from timing out.
-rw-r--r--sys/src/9/pc/etheriwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c
index 93285850e..909558b54 100644
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -2892,6 +2892,8 @@ postboot6000(Ctlr *ctlr)
if((err = cmd(ctlr, 90, c, 4+4*16)) != nil)
return err;
+ /* 6235 times out if we calibrate the crystal immediately */
+ tsleep(&up->sleep, return0, nil, 10);
if(ctlr->type != Type5150){
/* calibrate crystal */
memset(c, 0, sizeof(c));