diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-01-08 15:51:00 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-03-03 21:10:27 +0800 |
commit | a48b8bd259fe178836d2aacd768c5eadfb107458 (patch) | |
tree | 73e91e47e3432d2fa911fd4942625cd75479fe49 /MdeModulePkg | |
parent | b7f22b334c3b4532c109d6bfef877d6f7d091537 (diff) | |
download | edk2-a48b8bd259fe178836d2aacd768c5eadfb107458.tar.gz edk2-a48b8bd259fe178836d2aacd768c5eadfb107458.tar.bz2 edk2-a48b8bd259fe178836d2aacd768c5eadfb107458.zip |
MdeModulePkg/PciBusDxe: cope with HPCs that request no bus nr padding
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
(cherry picked from commit 2e94e412977900157296cdbd01b2d5135a66ba35)
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c index 12fc32e48c..dc1086606f 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -1,7 +1,7 @@ /** @file
Internal library implementation for PCI Bus module.
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1154,11 +1154,20 @@ PciScanBus ( FreePool (Descriptors);
- if (EFI_ERROR (Status)) {
- return Status;
- }
+ switch (Status) {
+ case EFI_SUCCESS:
+ BusPadding = TRUE;
+ break;
- BusPadding = TRUE;
+ case EFI_NOT_FOUND:
+ //
+ // no bus number padding requested
+ //
+ break;
+
+ default:
+ return Status;
+ }
}
}
}
|