ether2114x: make sure pci bar0 is I/O

front
cinap_lenrek 2020-12-17 21:02:11 +01:00
parent 318fe6a702
commit 646c502b15
1 changed files with 1 additions and 1 deletions

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: