summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-10-08 07:10:59 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-10-08 07:10:59 +0200
commit679a253931804caf4de436c5cdab8d34f178d779 (patch)
tree96ff1affe3ee11be68c28d68413af62dc86e8510
parent2fecc5789efc1cf1f0343890a363adc7ccaaeda5 (diff)
usbxhci: only clear RW1C bits when set.
-rw-r--r--sys/src/9/pc/usbxhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/usbxhci.c b/sys/src/9/pc/usbxhci.c
index e03f27418..653fdb0ca 100644
--- a/sys/src/9/pc/usbxhci.c
+++ b/sys/src/9/pc/usbxhci.c
@@ -399,7 +399,7 @@ handoff(Ctlr *ctlr)
tsleep(&up->sleep, return0, nil, 10);
}
/* disable SMI interrupts */
- r[1] = (r[1] & (7<<1 | 255<<5 | 7<<17)) | 7<<29;
+ r[1] &= 7<<1 | 255<<5 | 7<<17 | 7<<29;
/* clear BIOS ownership in case of timeout */
r[0] &= ~(1<<16);