summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCaleb Connolly <[email protected]>2024-11-13 06:00:56 +0100
committerCaleb Connolly <[email protected]>2024-11-20 17:57:58 +0100
commit53c0f1beac1e528f4ccfd116d6d4fde9881b3c91 (patch)
tree40a88793d33f5116c9c9d6da7fb76070c92923aa /drivers
parente88089e4f134435f0e49f6edc73eff2ce0db90e1 (diff)
iommu: qcom-smmu: allow SID 0
It turns out this is a very real stream ID. Who woulda thought? Drop the 0 check on the SID, there's no reason for it to be there in the first place. Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Caleb Connolly <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/qcom-hyp-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/qcom-hyp-smmu.c b/drivers/iommu/qcom-hyp-smmu.c
index 1b5a09bb7b3..7e07487ad38 100644
--- a/drivers/iommu/qcom-hyp-smmu.c
+++ b/drivers/iommu/qcom-hyp-smmu.c
@@ -134,7 +134,7 @@ static int get_stream_id(struct udevice *dev)
int count = ofnode_parse_phandle_with_args(node, "iommus",
"#iommu-cells", 0, 0, &args);
- if (count < 0 || args.args[0] == 0) {
+ if (count < 0) {
printf("Error: %s: iommus property not found or wrong number of cells\n",
__func__);
return -EINVAL;