[PATCH v2 6/6] DynamicTablesPkg: AcpiSsdtPcieLibArm: Added case handling for PCI config


Kun Qin
 

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3998

This change added a switch case handling for PCI_SS_CONFIG during SSDT
generation. This will allow PCI config case return EFI_SUCCESS instead of
EFI_INVALID_PARAMETER.

Cc: Sami Mujawar <Sami.Mujawar@...>
Cc: Alexei Fedorov <Alexei.Fedorov@...>

Co-authored-by: Joe Lopez <joelopez@...>
Signed-off-by: Kun Qin <kuqin12@...>
Reviewed-by: Pierre Gondois <pierre.gondois@...>
---

Notes:
v2:
- Added Reviewed-by tag [Pierre]

DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerator.c |=
5 +++++
1 file changed, 5 insertions(+)

diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieG=
enerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieG=
enerator.c
index c03550baabf2..2749cfabed6c 100644
--- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerato=
r.c
+++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerato=
r.c
@@ -603,6 +603,11 @@ GeneratePciCrs (
);=0D
break;=0D
=0D
+ case PCI_SS_CONFIG:=0D
+ // Do nothing=0D
+ Status =3D EFI_SUCCESS;=0D
+ break;=0D
+=0D
default:=0D
Status =3D EFI_INVALID_PARAMETER;=0D
} // switch=0D
--=20
2.37.1.windows.1

Join devel@edk2.groups.io to automatically receive all group messages.