powerpc/pseries/iommu: Update remove_dma_window() to accept property name
authorLeonardo Bras <leobras.c@gmail.com>
Tue, 17 Aug 2021 06:39:26 +0000 (03:39 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Aug 2021 14:56:55 +0000 (00:56 +1000)
commita5fd95120c653962a9e75e260a35436b96d2c991
tree13da782c8e60f6611d3a7d6d4a1b5f16c5bfef31
parentfc8cba8f989fb98e496b33a78476861e246c42a0
powerpc/pseries/iommu: Update remove_dma_window() to accept property name

Update remove_dma_window() so it can be used to remove DDW with a given
property name.

This enables the creation of new property names for DDW, so we can
have different usage for it, like indirect mapping.

Also, add return values to it so we can check if the property was found
while removing the active DDW. This allows skipping the remaining property
names while reducing the impact of multiple property names.

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210817063929.38701-9-leobras.c@gmail.com
arch/powerpc/platforms/pseries/iommu.c