From ddaf39263a1ed84e60238622dfed83ff14ecc50a Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 12 Mar 2024 16:12:09 +0100 Subject: EmbeddedPkg/NonCoherentIoMmuDxe: Make SetAttributes always succeed NonCoherentIoMmuSetAttribute() does nothing except return EFI_UNSUPPORTED. This was fine when it was introduced, but now, the PCI bus driver will fail a PCI I/O Map() operation if the call to SetAttributes() fails. So return EFI_SUCCESS instead. Cc: Leif Lindholm Cc: Abner Chang Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'EmbeddedPkg') diff --git a/EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c b/EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c index 4e7a5698c1..f02a76a62e 100644 --- a/EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c +++ b/EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c @@ -70,7 +70,7 @@ NonCoherentIoMmuSetAttribute ( IN UINT64 IoMmuAccess ) { - return EFI_UNSUPPORTED; + return EFI_SUCCESS; } /** -- cgit v1.2.3