]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: k3-dsp: Assert local reset during .prepare callback
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 13 May 2025 05:44:58 +0000 (11:14 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 20 May 2025 17:19:11 +0000 (11:19 -0600)
commitb80151c41ac53c19a10ccac8ff1b24bf08b17e5f
treeb03340517576fed4e69f773fa34eab9466c784fc
parent41d746b3423aea5f9f5b8ca5a7368515d9f1fe68
remoteproc: k3-dsp: Assert local reset during .prepare callback

The ti_k3_dsp_remoteproc.c driver asserts the local reset in probe
and releases the module reset in .prepare callback. This is done to
ensure the core does not execute bogus code when module reset is
deasserted.

Put both of these operations together in .prepare callback, which is
more suitable as it ensures local reset is asserted for subsequent core
start operations from sysfs. This is done to align the .prepare callback
of DSP with the M4 driver which can be factored out at a later stage.

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-25-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_dsp_remoteproc.c