[PATCH v1 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@...>
---
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 d9ed513a2ee3..f3e153ef5309 100644
--- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerato=
r.c
+++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerato=
r.c
@@ -676,6 +676,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.36.0.windows.1

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