remoteproc: sysmon: Add ability to send type of notification
authorSiddharth Gupta <sidgup@codeaurora.org>
Wed, 8 Apr 2020 23:36:38 +0000 (16:36 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 20 Apr 2020 07:06:03 +0000 (00:06 -0700)
commit66a4347e9a3e6adf9d3d5ceb9856cbed3d805beb
tree65a7e28d102ab85a88c4e3b36894f972da041c99
parent3898fc99d199346348b3efe1f6657b9eb7fa56cd
remoteproc: sysmon: Add ability to send type of notification

Current implementation of the sysmon driver does not support adding
notifications for other remoteproc events - prepare, start, unprepare.
Clients on the remoteproc side might be interested in knowing when a
remoteproc boots up. This change adds the ability to send the notification
type along with the name. For example, audio DSP is interested in knowing
when modem has crashed so that it can perform cleanup and wait for modem to
boot up before it starts processing data again.

Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Link: https://lore.kernel.org/r/1586389003-26675-2-git-send-email-sidgup@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_sysmon.c