[PATCH v2 1/3] memory: tegra264: Skip clients without bpmp_id or type

From: Sumit Gupta

Date: Mon May 18 2026 - 08:48:33 EST


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@xxxxxxxxxx>
---
drivers/memory/tegra/tegra264.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/memory/tegra/tegra264.c b/drivers/memory/tegra/tegra264.c
index e43ef14da1ee..e62890841725 100644
--- a/drivers/memory/tegra/tegra264.c
+++ b/drivers/memory/tegra/tegra264.c
@@ -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
--
2.34.1