]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: k3: Refactor rproc_request_mbox() implementations into common driver
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 13 May 2025 05:44:56 +0000 (11:14 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 20 May 2025 17:19:11 +0000 (11:19 -0600)
commit6fdad99c94d721182100071be02873f2b41b6490
treec3745bb0a6e797d4bc9eb6f6b60f5161fc4a4b45
parent67de5d0e6d65ef2016650e2e5c05153a3376fb61
remoteproc: k3: Refactor rproc_request_mbox() implementations into common driver

The rproc_request_mbox() implementations in TI K3 R5, DSP and M4
remoteproc drivers acquire the mailbox channel and send the same message
through the acquired channel.

Refactor the above function into the ti_k3_common.c driver as
k3_rproc_request_mbox() and use it throughout R5, DSP and M4 drivers.

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