summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanmay Shah <tanmay.shah@amd.com>2026-03-04 02:51:28 +0300
committerMathieu Poirier <mathieu.poirier@linaro.org>2026-03-17 18:48:55 +0300
commit21f2762acb5c082666495ebfee8d4a159f03bb07 (patch)
tree146e8de08ef05c66e1248f8e35ed264a2f08cb7c
parent95b6c029e56e4d75e2957ce7ac795da29415865b (diff)
downloadlinux-21f2762acb5c082666495ebfee8d4a159f03bb07.tar.xz
remoteproc: xlnx: Release mailbox channels on shutdown
Mailbox driver can't introduce shutdown callback, as it might endup closing mbox channels prematurely. By allowing the client driver to manage the shutdown process, it's ensured that mailbox channels are closed only when they are no longer needed. Signed-off-by: Tanmay Shah <tanmay.shah@amd.com> Link: https://lore.kernel.org/r/20260303235127.2317955-4-tanmay.shah@amd.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
-rw-r--r--drivers/remoteproc/xlnx_r5_remoteproc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c b/drivers/remoteproc/xlnx_r5_remoteproc.c
index 5e92dc51f1c0..50a9974f3202 100644
--- a/drivers/remoteproc/xlnx_r5_remoteproc.c
+++ b/drivers/remoteproc/xlnx_r5_remoteproc.c
@@ -1490,6 +1490,8 @@ static void zynqmp_r5_remoteproc_shutdown(struct platform_device *pdev)
dev_err(cluster->dev, "failed to %s rproc %d\n",
rproc_state_str, rproc->index);
}
+
+ zynqmp_r5_free_mbox(r5_core->ipi);
}
}