We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc92069 commit 4a17446Copy full SHA for 4a17446
drivers/pcie/host/pcie.c
@@ -159,7 +159,8 @@ static bool pcie_get_bar(pcie_bdf_t bdf,
159
}
160
161
/* IO/memory decode should be disabled before sizing/update BAR. */
162
- pcie_conf_write(bdf, PCIE_CONF_CMDSTAT, cmd_reg & (~0x3));
+ pcie_conf_write(bdf, PCIE_CONF_CMDSTAT,
163
+ cmd_reg & (~(PCIE_CONF_CMDSTAT_IO | PCIE_CONF_CMDSTAT_MEM)));
164
165
pcie_conf_write(bdf, reg, 0xFFFFFFFFU);
166
size = pcie_conf_read(bdf, reg);
0 commit comments