Skip to content

Commit eac93f4

Browse files
committed
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 <[email protected]> Suggested-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 83a7eef commit eac93f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/tegra-smmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static int tegra_smmu_configure(struct tegra_smmu *smmu, struct device *dev,
837837
const struct iommu_ops *ops = smmu->iommu.ops;
838838
int err;
839839

840-
err = iommu_fwspec_init(dev, &dev->of_node->fwnode, ops);
840+
err = iommu_fwspec_init(dev, &smmu->dev->of_node->fwnode, ops);
841841
if (err < 0) {
842842
dev_err(dev, "failed to initialize fwspec: %d\n", err);
843843
return err;

0 commit comments

Comments
 (0)