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 <quic_llindhol@quicinc.com>
Cc: Abner Chang <abner.chang@amd.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
This commit is contained in:
Ard Biesheuvel 2024-03-12 16:12:09 +01:00 committed by mergify[bot]
parent ccf91b518f
commit ddaf39263a
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ NonCoherentIoMmuSetAttribute (
IN UINT64 IoMmuAccess IN UINT64 IoMmuAccess
) )
{ {
return EFI_UNSUPPORTED; return EFI_SUCCESS;
} }
/** /**