remoteproc: k3-r5: Refactor mbox request code in start
authorSuman Anna <s-anna@ti.com>
Sun, 13 Feb 2022 20:12:43 +0000 (14:12 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Mar 2022 20:31:55 +0000 (14:31 -0600)
commite3865c85385aa0c882702039a66f8e1c973bd55c
tree82eb03f99c557a5ab499f48bac2d38149505feb3
parentc13b780c4597e1e6cee3154053a196aa329b1367
remoteproc: k3-r5: Refactor mbox request code in start

Refactor out the mailbox request and associated ping logic code
from k3_r5_rproc_start() function into its own separate function
so that it can be re-used in the soon to be added .attach() ops
callback.

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220213201246.25952-3-s-anna@ti.com
drivers/remoteproc/ti_k3_r5_remoteproc.c