remoteproc: qcom: Add notification types to SSR
authorRishabh Bhatnagar <rishabhb@codeaurora.org>
Wed, 24 Jun 2020 02:23:28 +0000 (19:23 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 9 Jul 2020 04:45:17 +0000 (21:45 -0700)
commit62495d778439a4e47571293511a785cba754874c
tree5def48ebf9d91f001083eff61e6f3195b1e8538e
parent5abfe5cf0b8358b8ad0da99e4188c2519839d67c
remoteproc: qcom: Add notification types to SSR

The SSR subdevice only adds callback for the unprepare event. Add callbacks
for prepare, start and prepare events. The client driver for a particular
remoteproc might be interested in knowing the status of the remoteproc
while undergoing SSR, not just when the remoteproc has finished shutting
down.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Link: https://lore.kernel.org/r/1592965408-16908-3-git-send-email-rishabhb@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_common.c
include/linux/remoteproc/qcom_rproc.h