aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSai Prakash Ranjan <[email protected]>2020-04-23 15:25:31 +0530
committerWill Deacon <[email protected]>2020-05-07 14:20:29 +0100
commit02782f3d60f197f02efd153b43ef64214dc00c01 (patch)
tree1710cea5ec53838351480fd1db7668292eb7f86a
parent1b032ec1ecbce6047af7d11c9db432e237cb17d8 (diff)
iommu/arm-smmu: Make remove callback message more informative
Currently on reboot/shutdown, the following messages are displayed on the console as error messages before the system reboots/shutdown as part of remove callback. On SC7180: arm-smmu 15000000.iommu: removing device with active domains! arm-smmu 5040000.iommu: removing device with active domains! Make this error message more informative and less scary. Reported-by: Douglas Anderson <[email protected]> Suggested-by: Robin Murphy <[email protected]> Signed-off-by: Sai Prakash Ranjan <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] [will: use dev_notice() as per Robin] Signed-off-by: Will Deacon <[email protected]>
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index e622f4e33379..befe605f9c43 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -2244,7 +2244,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
return -ENODEV;
if (!bitmap_empty(smmu->context_map, ARM_SMMU_MAX_CBS))
- dev_err(&pdev->dev, "removing device with active domains!\n");
+ dev_notice(&pdev->dev, "disabling translation\n");
arm_smmu_bus_init(NULL);
iommu_device_unregister(&smmu->iommu);