]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: k3-m4: Introduce central function to put rproc into reset
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 13 May 2025 05:44:50 +0000 (11:14 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 20 May 2025 17:19:11 +0000 (11:19 -0600)
commitca8921f44c9464ba0ee285f1e616279ca30fa710
tree69f1a94a054f8376fe65d4e7e0b9a7cb1676b4a6
parent754d13dfe263c704b9c2e3cd86cc37cf877a0789
remoteproc: k3-m4: Introduce central function to put rproc into 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_reset() which
handles both type of devices (with and without local resets), and use it
throughout the driver to put the remote processor into reset. This is
done to align the reset 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-17-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_m4_remoteproc.c