diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-03-12 16:12:09 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-12 17:39:01 +0000 |
commit | ddaf39263a1ed84e60238622dfed83ff14ecc50a (patch) | |
tree | ecbdcd83b187e1fc2c8fccbf69246ec3e0b806cc /EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c | |
parent | ccf91b518f22102d446f26320110d30ea0fc1fa9 (diff) | |
download | edk2-ddaf39263a1ed84e60238622dfed83ff14ecc50a.zip edk2-ddaf39263a1ed84e60238622dfed83ff14ecc50a.tar.gz edk2-ddaf39263a1ed84e60238622dfed83ff14ecc50a.tar.bz2 |
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/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c')
-rw-r--r-- | EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c b/EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c index 4e7a569..f02a76a 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;
}
/**
|