summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2024-03-12 16:12:09 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-03-12 17:39:01 +0000
commitddaf39263a1ed84e60238622dfed83ff14ecc50a (patch)
treeecbdcd83b187e1fc2c8fccbf69246ec3e0b806cc /EmbeddedPkg
parentccf91b518f22102d446f26320110d30ea0fc1fa9 (diff)
downloadedk2-ddaf39263a1ed84e60238622dfed83ff14ecc50a.tar.gz
edk2-ddaf39263a1ed84e60238622dfed83ff14ecc50a.tar.bz2
edk2-ddaf39263a1ed84e60238622dfed83ff14ecc50a.zip
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>
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r--EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c2
1 files changed, 1 insertions, 1 deletions
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;
}
/**