]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:01:11 +0000 (12:01 +0200)
commitc1ea59b64cf746705c80c9052662b71e748a55dd
treee382f0fb5090c73e8d6368dc544e3b0b029c7773
parent207f1c8c86e407bca286f6e21afacd9ce6d20aed
remoteproc: k3-r5: Acquire mailbox handle during probe routine

[ Upstream commit f3f11cfe890733373ddbb1ce8991ccd4ee5e79e1 ]

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>
Stable-dep-of: 8fa052c29e50 ("remoteproc: k3-r5: Delay notification of wakeup event")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c