summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/tegra-smmu.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2020-08-06 17:54:02 +0200
committerJoerg Roedel <jroedel@suse.de>2020-09-04 11:00:14 +0200
commit002957020e52cfcad538e3dff26969d1cf8a2556 (patch)
treecfc73ad94d91de281d02f199d07b0184769c0094 /drivers/iommu/tegra-smmu.c
parentf75aef392f869018f78cfedf3c320a6b3fcfda6b (diff)
downloadlinux-stable-002957020e52cfcad538e3dff26969d1cf8a2556.tar.gz
linux-stable-002957020e52cfcad538e3dff26969d1cf8a2556.tar.bz2
linux-stable-002957020e52cfcad538e3dff26969d1cf8a2556.zip
iommu/tegra-smmu: Set IOMMU group name
Set the name of static IOMMU groups to help with debugging. Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20200806155404.3936074-2-thierry.reding@gmail.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/tegra-smmu.c')
-rw-r--r--drivers/iommu/tegra-smmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 124c8848ab7e..1ffdafe892d9 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -847,6 +847,7 @@ static struct iommu_group *tegra_smmu_group_get(struct tegra_smmu *smmu,
return NULL;
}
+ iommu_group_set_name(group->group, soc->name);
list_add_tail(&group->list, &smmu->groups);
mutex_unlock(&smmu->lock);