ref: 57e10955abc046bad0d35b94a3f841ad31abd148
parent: 2c42e62fd71ec6ddcbda996b287b2c4177488051
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Dec 17 16:02:11 EST 2020
ether2114x: make sure pci bar0 is I/O
--- a/sys/src/9/pc/ether2114x.c
+++ b/sys/src/9/pc/ether2114x.c
@@ -1654,7 +1654,7 @@
p = nil;
while(p = pcimatch(p, 0, 0)){- if(p->ccrb != 0x02 || p->ccru != 0)
+ if(p->ccrb != 0x02 || p->ccru != 0 || (p->mem[0].bar & 1) == 0)
continue;
switch((p->did<<16)|p->vid){default:
--
⑨