]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
remoteproc: xlnx: Release mailbox channels on shutdown
authorTanmay Shah <tanmay.shah@amd.com>
Tue, 3 Mar 2026 23:51:28 +0000 (15:51 -0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 17 Mar 2026 15:48:55 +0000 (09:48 -0600)
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>
drivers/remoteproc/xlnx_r5_remoteproc.c

index 5e92dc51f1c082e53fd0698d052384e61e6003f5..50a9974f3202e635b1f0db6e1e0396ee847d92df 100644 (file)
@@ -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);
        }
 }