remoteproc: k3-r5: Acquire mailbox handle during probe routine
authorBeleswar Padhi <b-padhi@ti.com>
Thu, 8 Aug 2024 07:41:26 +0000 (13:11 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 16 Aug 2024 14:45:02 +0000 (08:45 -0600)
commitf3f11cfe890733373ddbb1ce8991ccd4ee5e79e1
treef8fdfc4d8d009afbff023704c7f0fa0bd7ac65fb
parentc81ef0cb576a3995edf24b63e9639881f19a2122
remoteproc: k3-r5: 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>
Link: https://lore.kernel.org/r/20240808074127.2688131-3-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c