From 93684aed807d277efef77b6e638b69010e8ebde5 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Mon, 2 Feb 2015 08:36:47 -0800 Subject: iommu/arm-smmu: print idr0 when translation support is not found To aide in debugging, print the value of the IDR0 register when no translation support is found, which would generally indicate a hardware bug or missing clocks/power. Change-Id: I22dd44fc30012c72a7d04088ab079076b6837f7e Signed-off-by: Mitchel Humpherys --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index e81e89477e3b..e11fefb4e19f 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -2388,7 +2388,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu) if (!(smmu->features & (ARM_SMMU_FEAT_TRANS_S1 | ARM_SMMU_FEAT_TRANS_S2))) { - dev_err(smmu->dev, "\tno translation support!\n"); + dev_err(smmu->dev, "\tno translation support (id0=%x)!\n", id); return -ENODEV; } -- cgit v1.2.3