OSDN Git Service

iommu/arm-smmu-qcom: Move the qcom,adreno-smmu check into qcom_smmu_create
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 14 Nov 2022 17:06:31 +0000 (20:06 +0300)
committerWill Deacon <will@kernel.org>
Mon, 14 Nov 2022 18:09:38 +0000 (18:09 +0000)
commit30b912a03d91727d75ae14f277b64aca8fb915e4
tree5ec6254d423c11d73fe0ae229f1e3a75391cb0d7
parent4c1d0ad153f8bca09776da6031639d3b965d849a
iommu/arm-smmu-qcom: Move the qcom,adreno-smmu check into qcom_smmu_create

Move special handling of qcom,adreno-smmu into qcom_smmu_create()
function. This allows us to further customize the Adreno SMMU
implementation.

Note, this also adds two entries to the qcom_smmu_impl_of_match table.
They were used with the qcom,adreno-smmu compat and were handled by the
removed clause.

Reviewed-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Tested-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20221114170635.1406534-7-dmitry.baryshkov@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h