]> git.ipfire.org Git - thirdparty/linux.git/commit
remoteproc: k3-dsp: Acquire mailbox handle during probe routine
authorBeleswar Padhi <b-padhi@ti.com>
Thu, 8 Aug 2024 07:41:27 +0000 (13:11 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 16 Aug 2024 14:45:32 +0000 (08:45 -0600)
commitea1d6fb5b57135e8e05ebfaaf816e199baee96b3
treee9a7f1806ee279fabef3da1e58f66aec56ff302b
parentf3f11cfe890733373ddbb1ce8991ccd4ee5e79e1
remoteproc: k3-dsp: Acquire mailbox handle during probe routine

Acquire the mailbox handle during device probe and do not release handle
in stop/detach routine or error paths. This removes the redundant
requests for mbox handle later during rproc start/attach. This also
allows to defer remoteproc driver's probe if mailbox is not probed yet.

Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240808074127.2688131-4-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_dsp_remoteproc.c