[pci] Cache ECAM mapping errors

When an error occurs during ECAM configuration space mapping, preserve
the error within the existing cached mapping (instead of invalidating
the cached mapping) in order to avoid flooding the debug log with
repeated identical mapping errors.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2023-11-02 15:16:19 +00:00
parent 74ec00a9f3
commit 1f3a37e342
2 changed files with 6 additions and 2 deletions

View File

@@ -50,6 +50,8 @@ struct ecam_mapping {
struct pci_range range;
/** MMIO base address */
void *regs;
/** Mapping result */
int rc;
};
extern struct pci_api ecam_api;