All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu: arm-smmu: correct sid to mask
@ 2017-04-21  9:03 ` Peng Fan
  0 siblings, 0 replies; 9+ messages in thread
From: Peng Fan @ 2017-04-21  9:03 UTC (permalink / raw)
  To: will.deacon; +Cc: robin.murphy, linux-arm-kernel, iommu, linux-kernel, Peng Fan

>From code "SMR mask 0x%x out of range for SMMU",
so, we need to use mask, not sid.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
---
 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 b493c99..5a06de2 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1467,7 +1467,7 @@ static int arm_smmu_add_device(struct device *dev)
 		}
 		if (mask & ~smmu->smr_mask_mask) {
 			dev_err(dev, "SMR mask 0x%x out of range for SMMU (0x%x)\n",
-				sid, smmu->smr_mask_mask);
+				mask, smmu->smr_mask_mask);
 			goto out_free;
 		}
 	}
-- 
2.6.6

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-04-25 12:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21  9:03 [PATCH] iommu: arm-smmu: correct sid to mask Peng Fan
2017-04-21  9:03 ` Peng Fan
2017-04-21  9:03 ` Peng Fan
     [not found] ` <1492765416-30835-1-git-send-email-peng.fan-3arQi8VN3Tc@public.gmane.org>
2017-04-24 15:54   ` Will Deacon
2017-04-24 15:54     ` Will Deacon
2017-04-24 15:54     ` Will Deacon
     [not found]     ` <20170424155453.GP12323-5wv7dgnIgG8@public.gmane.org>
2017-04-25 12:26       ` Joerg Roedel
2017-04-25 12:26         ` Joerg Roedel
2017-04-25 12:26         ` Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.