git: 9front

Download patch

ref: 287e82a83da3741f8c33a8c213fa2b3ff612b4fb
parent: 8b868b624e7fc32dc21c913d814725a27e317360
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 8 03:10:59 EDT 2018

usbxhci: only clear RW1C bits when set.

--- a/sys/src/9/pc/usbxhci.c
+++ b/sys/src/9/pc/usbxhci.c
@@ -399,7 +399,7 @@
 			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);
--