powerpc/ioda/iommu/debugfs: Generate unique debugfs entries
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 14 Jul 2022 08:08:00 +0000 (18:08 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:43 +0000 (11:40 +0200)
commita5ec4cd45b522a4bbceedbea176d77ee49d73e1a
tree588a61e244029021245d624a43f7211f07b2fbff
parent8641e0bbb5ef8feedec7a5d6377acdc6c46e8116
powerpc/ioda/iommu/debugfs: Generate unique debugfs entries

[ Upstream commit d73b46c3c1449bf27f793b9d9ee86ed70c7a7163 ]

The iommu_table::it_index is a LIOBN which is not initialized on PowerNV
as it is not used except IOMMU debugfs where it is used for a node name.

This initializes it_index witn a unique number to avoid warnings and
have a node for every iommu_table.

This should not cause any behavioral change without CONFIG_IOMMU_DEBUGFS.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220714080800.3712998-1-aik@ozlabs.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/powernv/pci-ioda.c