remoteproc: k3-dsp: Refactor mbox request code in start
authorSuman Anna <s-anna@ti.com>
Sun, 13 Feb 2022 20:12:45 +0000 (14:12 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Mar 2022 20:31:56 +0000 (14:31 -0600)
commit2eab5efeb4d644d9c94e29c3cbb35a47f715bffd
tree5f468d593701ddef078328527de46a0b2576b067
parent1168af40b1ad8cb2e78f4a70869fa4a076320e4f
remoteproc: k3-dsp: Refactor mbox request code in start

Refactor out the mailbox request and associated ping logic code
from k3_dsp_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-5-s-anna@ti.com
drivers/remoteproc/ti_k3_dsp_remoteproc.c