shithub: riscv

Download patch

ref: 679a253931804caf4de436c5cdab8d34f178d779
parent: 2fecc5789efc1cf1f0343890a363adc7ccaaeda5
author: cinap_lenrek <[email protected]>
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);