remoteproc: xlnx: Add shutdown callback
authorTanmay Shah <tanmay.shah@amd.com>
Fri, 20 Jun 2025 19:57:28 +0000 (12:57 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 3 Jul 2025 16:34:19 +0000 (10:34 -0600)
commit209be2857bcc4bae88ef1b0981da2db99f84dbb5
tree22aa4d04d341ce32afba5101af39f5034d3ed33a
parent82a4277fa5e027028b955982ea876e24f660f808
remoteproc: xlnx: Add shutdown callback

In case of kexec call, each driver's shutdown callback is called. Handle
this call for rproc driver and shutdown/detach each core that was powered
on before. This is needed for proper Life Cycle Management of remote
processor. Otherwise on next linux boot, remote processor can't be
started due to bad refcount of power-domain managed by platform
management controller.

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
Link: https://lore.kernel.org/r/20250620195728.3216935-1-tanmay.shah@amd.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/xlnx_r5_remoteproc.c