remoteproc: qcom: q6v5: Use qmp_send to update co-processor load state
authorSibi Sankar <sibis@codeaurora.org>
Thu, 16 Sep 2021 13:59:21 +0000 (19:29 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Sep 2021 20:43:29 +0000 (15:43 -0500)
commitc1fe10d238c0256a77dbc4bf6493b9782b2a218d
tree0dd439404f4dbb55c5dc6ab36de113fbf38a6a3b
parent8443ef7b5771830bc86c9e2c1622b55ddf33f0f5
remoteproc: qcom: q6v5: Use qmp_send to update co-processor load state

The power domains exposed by the AOSS QMP driver control the load state
resources linked to modem, adsp, cdsp remoteprocs. These are used to
notify the Always on Subsystem (AOSS) that a particular co-processor is
up/down. AOSS uses this information to wait for the co-processors to
suspend before starting its sleep sequence.

These co-processors enter low-power modes independent to that of the
application processor and the load state resources linked to them are
expected to remain unaltered across system suspend/resume cycles. To
achieve this behavior lets stop using the power-domains exposed by the
AOSS QMP node and replace them with generic qmp_send interface instead.

Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
[bjorn: Fixed up build error in q6v5_wcss_remove()]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1631800770-371-5-git-send-email-sibis@codeaurora.org
drivers/remoteproc/qcom_q6v5.c
drivers/remoteproc/qcom_q6v5.h
drivers/remoteproc/qcom_q6v5_adsp.c
drivers/remoteproc/qcom_q6v5_mss.c
drivers/remoteproc/qcom_q6v5_pas.c
drivers/remoteproc/qcom_q6v5_wcss.c