From 679a253931804caf4de436c5cdab8d34f178d779 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 8 Oct 2018 07:10:59 +0200 Subject: usbxhci: only clear RW1C bits when set. --- sys/src/9/pc/usbxhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3