Skip to content
Snippets Groups Projects
Commit ed3030f3 authored by Asias He's avatar Asias He Committed by Pekka Enberg
Browse files

pci: Fix probe of BAR


The first BAR is not present does not mean the entire BAR are not
present. Some implementation of AHCI controller only has BAR6 present
with BAR1 to BAR5 empty.

Keep probing if a BAR is not present.

Signed-off-by: default avatarAsias He <asias@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 6c5a00b3
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,9 @@ namespace pci {
u32 bar_v = pci_readl(pos);
if (bar_v == 0) {
break;
pos += 4;
idx++;
continue;
}
bar * pbar = new bar(this, pos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment