]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: k3-dsp: Don't override rproc ops in IPC-only mode
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 13 May 2025 05:44:57 +0000 (11:14 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 20 May 2025 17:19:11 +0000 (11:19 -0600)
commit41d746b3423aea5f9f5b8ca5a7368515d9f1fe68
treee45e0f76f15a9030e4bafe2bfbee8a8857119a0b
parent6fdad99c94d721182100071be02873f2b41b6490
remoteproc: k3-dsp: Don't override rproc ops in IPC-only mode

Currently, the driver overrides the rproc ops when booting in IPC-only
mode. Remove these overrides and register the ops unconditionally. This
requires to have IPC-only mode checks in the .prepare and .unprepare ops
and returning early. The other rproc ops are invoked when booting either
in IPC-only mode or in remoteproc mode but not both.

This is done to align the rproc ops implementations of DSP driver with
M4 driver and 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-24-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_dsp_remoteproc.c