]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
iommu: qcom-smmu: allow SID 0
authorCaleb Connolly <caleb.connolly@linaro.org>
Wed, 13 Nov 2024 05:00:56 +0000 (06:00 +0100)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 20 Nov 2024 16:57:58 +0000 (17:57 +0100)
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 <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/iommu/qcom-hyp-smmu.c

index 1b5a09bb7b39decd28d4221087ac0c3247ea3fc0..7e07487ad3842ecd14fbacad3083a43fe9168531 100644 (file)
@@ -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;