soc: qcom: smp2p: add feature negotiation and ssr ack feature support
authorChris Lew <clew@codeaurora.org>
Tue, 5 Oct 2021 16:13:23 +0000 (21:43 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 17 Oct 2021 16:43:31 +0000 (11:43 -0500)
commit85f755083b23b1ee59c96df80f148e6203bb078f
tree24f00903f52eee0c4633b470c133050c6868ff1c
parent1d7724690344a264f8a567c9214aa65456d7566d
soc: qcom: smp2p: add feature negotiation and ssr ack feature support

This patch adds feature negotiation and ssr ack feature between
local host and remote processor. Local host can negotiate on common
features supported with remote processor.

When ssr ack feature bit is set, the remote processor will tell local
host when it is reinitialized. All clients registered for falling edge
interrupts will be notified when the smp2p entries are cleared for ssr.

Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1633450403-21281-1-git-send-email-deesin@codeaurora.org
drivers/soc/qcom/smp2p.c