]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: k3-m4: Introduce central function to release rproc from reset
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 13 May 2025 05:44:53 +0000 (11:14 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 20 May 2025 17:19:11 +0000 (11:19 -0600)
commit3b8127fc51eb9254551b465bd6eec7ef94a3dc90
treee03b58276656c18141e7f95aa9c9d6b6c663b620
parent334a841e33f41ef22ad7b33f77902a41c76117be
remoteproc: k3-m4: Introduce central function to release rproc from reset

Currently, the TI K3 M4 remoteproc driver assumes all of the M4 devices
have local resets. Even though its true for all existing M4 devices,
keep room for future devices which possibly may not have local resets
and only have a module reset.

Therefore introduce a central function, k3_m4_rproc_release() which
handles both type of devices (with and without local resets), and use it
throughout the driver to release the remote processor from reset. Also,
for devices with local reset, Assert the module reset back in case the
local reset deassert operation failed.

This is done to align the reset release implementation with DSP
remoteproc driver and can be factored out later.

Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Tested-by: Judith Mendez <jm@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20250513054510.3439842-20-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_m4_remoteproc.c