shithub: riscv

Download patch

ref: dd2d6c9430fe86b6cb7a27e59c54210840640c6a
parent: a3626a6efacc99bdfbe733758d508ed38ed8148c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jun 6 12:10:04 EDT 2020

usbuhci: make sure pci membar type is i/o

--- a/sys/src/9/pc/usbuhci.c
+++ b/sys/src/9/pc/usbuhci.c
@@ -2129,7 +2129,9 @@
 			continue;
 		switch(p->ccrp){
 		case 0:
-			io = p->mem[4].bar & ~0x0F;
+			if((p->mem[4].bar & 1) == 0)
+				continue;
+			io = (int)p->mem[4].bar & ~0xF;
 			break;
 		default:
 			continue;