ether2114x: make sure pci bar0 is I/O

This commit is contained in:
cinap_lenrek 2020-12-17 21:02:11 +01:00
parent 318fe6a702
commit 646c502b15

View file

@ -1654,7 +1654,7 @@ dec2114xpci(void)
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: