Re: [PATCH v3 3/9] iommu/arm-smmu: Implement ->probe_finalize()
From: Robin Murphy <robin.murphy@arm.com>
Date: 2021-06-15 21:48:01
Also in:
linux-iommu, linux-tegra
From: Robin Murphy <robin.murphy@arm.com>
Date: 2021-06-15 21:48:01
Also in:
linux-iommu, linux-tegra
On 2021-06-15 19:01, Marek Szyprowski wrote:
Hi, On 03.06.2021 18:46, Thierry Reding wrote:quoted
From: Thierry Reding <redacted> Implement a ->probe_finalize() callback that can be used by vendor implementations to perform extra programming necessary after devices have been attached to the SMMU. Signed-off-by: Thierry Reding <redacted>This patch landed recently in linux-next as commit 0d97174aeadf ("iommu/arm-smmu: Implement ->probe_finalize()"). It causes the following issue on ARM Juno R1 board:
[...]
quoted
+static void arm_smmu_probe_finalize(struct device *dev) +{ + struct arm_smmu_master_cfg *cfg; + struct arm_smmu_device *smmu; + + cfg = dev_iommu_priv_get(dev); + smmu = cfg->smmu; + + if (smmu->impl->probe_finalize)
Oops, indeed that needs to check smmu->impl first. Robin.
quoted
+ smmu->impl->probe_finalize(smmu, dev); +} +
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel