]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ff559ede9f3eb8d8838238442c735c9e30b1d67
tree13da782c8e60f6611d3a7d6d4a1b5f16c5bfef31
parent348006bc3a76ada0ad6e6c88b70856de454e824c
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