Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 246e23e2 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu/arm-smmu: add support for dynamic stream IDs to DT parsing" into msm-4.8

parents 04e2c29e a571f73d
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -718,13 +718,22 @@ static int arm_smmu_parse_iommus_properties(struct arm_smmu_device *smmu,
				entry->node = master;
				list_add(&entry->list, &iommus);
			}
			if (iommuspec.args_count != 1) {
				dev_err(smmu->dev, "iommus property has wrong #iommu-cells");
				return -EINVAL;
			}
			switch (iommuspec.args_count) {
			case 0:
				/*
				 * For pci-e devices the SIDs are provided
				 * at device attach time.
				 */
				break;
			case 1:
				entry->num_sids++;
				entry->streamids[entry->num_sids - 1]
					= iommuspec.args[0];
				break;
			default:
				dev_err(smmu->dev, "iommus property has wrong #iommu-cells");
				return -EINVAL;
			}
			arg_ind++;
		}