]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memory: tegra264: Skip clients without bpmp_id or type
authorSumit Gupta <sumitg@nvidia.com>
Mon, 18 May 2026 12:43:04 +0000 (18:13 +0530)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 27 May 2026 12:50:17 +0000 (14:50 +0200)
Some MC clients are present in tegra264_mc_clients[] only for
fault-log naming and have no .bpmp_id or .type assigned. Skip
forwarding bandwidth requests to BPMP for such clients in
tegra264_mc_icc_set().

Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Link: https://patch.msgid.link/20260518124306.2071481-2-sumitg@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/tegra/tegra264.c

index e43ef14da1ee73db6974cab0b1a59925c45be9d5..e6289084172556738273a0619b404076333c2268 100644 (file)
@@ -262,6 +262,10 @@ static int tegra264_mc_icc_set(struct icc_node *src, struct icc_node *dst)
                return -ENOENT;
        }
 
+       /* Skip forwarding bw requests to BPMP from clients without bpmp_id/type. */
+       if (pclient->type == TEGRA_ICC_NONE || !pclient->bpmp_id)
+               return 0;
+
        if (pclient->type == TEGRA_ICC_NISO)
                bwmgr_req.bwmgr_calc_set_req.niso_bw = src->avg_bw;
        else