Skip to content

Commit 9796cf9

Browse files
Zhenhua Huangwilldeacon
authored andcommitted
iommu/arm-smmu-qcom: record reason for deferring probe
To avoid deferring probe smmu driver silently, record reason for it. It can be checked through ../debugfs/devices_deferred as well: /sys/kernel/debug# cat devices_deferred 15000000.iommu arm-smmu: qcom_scm not ready Signed-off-by: Zhenhua Huang <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent d525b0a commit 9796cf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ static struct arm_smmu_device *qcom_smmu_create(struct arm_smmu_device *smmu,
469469

470470
/* Check to make sure qcom_scm has finished probing */
471471
if (!qcom_scm_is_available())
472-
return ERR_PTR(-EPROBE_DEFER);
472+
return ERR_PTR(dev_err_probe(smmu->dev, -EPROBE_DEFER,
473+
"qcom_scm not ready\n"));
473474

474475
qsmmu = devm_krealloc(smmu->dev, smmu, sizeof(*qsmmu), GFP_KERNEL);
475476
if (!qsmmu)

0 commit comments

Comments
 (0)