[PATCH v2 15/22] iommu/tegra: smmu: Calculate ASID register offset by ID
Stephen Warren
swarren at wwwdotorg.org
Thu Jul 18 16:18:34 EDT 2013
On 07/05/2013 04:44 AM, Hiroshi Doyu wrote:
> Calculate ASID register offset by ID so that we can get rid of SoC
> specific MACROs. This is needed for the unified SMMU driver over Tegra
> SoCs.
> diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
> -#define HWGRP_ASID_REG(x) (smmu_hwgrp_asid_reg[x])
> +#define HWGRP_ASID_REG(x) ((x) * sizeof(u32) + SMMU_AFI_ASID)
I think this removes the last use of smmu_hwgrp_asid_reg[]. Don't you
want to delete that in this patch?
More information about the linux-arm-kernel
mailing list