ref: 646c502b151f667362c625b6e2440cf1db520475
parent: 318fe6a702b5c118ce271b616c115648ae6d7448
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: