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>
This commit is contained in:
Ruiyu Ni 2018-01-08 15:51:00 +08:00
parent 09c80b07b4
commit 2e94e41297
1 changed files with 14 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Internal library implementation for PCI Bus module. 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> (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -1154,11 +1154,20 @@ PciScanBus (
FreePool (Descriptors); FreePool (Descriptors);
if (EFI_ERROR (Status)) { switch (Status) {
return Status; case EFI_SUCCESS:
} BusPadding = TRUE;
break;
BusPadding = TRUE; case EFI_NOT_FOUND:
//
// no bus number padding requested
//
break;
default:
return Status;
}
} }
} }
} }