]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/tegra-smmu: Pass correct fwnode to iommu_fwspec_init()
authorWill Deacon <will@kernel.org>
Fri, 12 Jul 2024 15:35:25 +0000 (16:35 +0100)
committerWill Deacon <will@kernel.org>
Fri, 12 Jul 2024 15:36:54 +0000 (16:36 +0100)
commiteac93f4d4ec63423704657895ce9a4ddac7b023b
treeef27c9bfa6d0c00783ce7b65434efde2edc0e7f6
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
iommu/tegra-smmu: Pass correct fwnode to iommu_fwspec_init()

iommu_fwspec_init() expects to receive the fwnode corresponding to the
IOMMU device, not the fwnode corresponding to the client device being
probed.

Fix arm_smmu_configure() to pass the correct fwnode to
iommu_fwspec_init().

Reported-by: Jon Hunter <jonathanh@nvidia.com>
Suggested-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/0eec5f84-6b39-43ba-ab2f-914688a5cf45@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/tegra-smmu.c