Skip to content

Commit 80b7108

Browse files
lumagwilldeacon
authored andcommitted
iommu/arm-smmu-qcom: Add generic qcom,smmu-500 match entry
Add generic qcom,smmu-500 compatibility string. Newer platforms should use this generic entry rather than declaring per-SoC entries. Reviewed-by: Sai Prakash Ranjan <[email protected]> Tested-by: Sai Prakash Ranjan <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent b4c6ee5 commit 80b7108

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ static const struct qcom_smmu_match_data qcom_smmu_500_impl0_data = {
491491
.cfg = &qcom_smmu_impl0_cfg,
492492
};
493493

494+
/*
495+
* Do not add any more qcom,SOC-smmu-500 entries to this list, unless they need
496+
* special handling and can not be covered by the qcom,smmu-500 entry.
497+
*/
494498
static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = {
495499
{ .compatible = "qcom,msm8996-smmu-v2", .data = &msm8996_smmu_data },
496500
{ .compatible = "qcom,msm8998-smmu-v2", .data = &qcom_smmu_v2_data },
@@ -511,6 +515,7 @@ static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = {
511515
{ .compatible = "qcom,sm8250-smmu-500", .data = &qcom_smmu_500_impl0_data },
512516
{ .compatible = "qcom,sm8350-smmu-500", .data = &qcom_smmu_500_impl0_data },
513517
{ .compatible = "qcom,sm8450-smmu-500", .data = &qcom_smmu_500_impl0_data },
518+
{ .compatible = "qcom,smmu-500", .data = &qcom_smmu_500_impl0_data },
514519
{ }
515520
};
516521

0 commit comments

Comments
 (0)