]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: smp2p: Add support for smp2p v2
authorChris Lew <chris.lew@oss.qualcomm.com>
Tue, 27 Jan 2026 10:38:46 +0000 (16:08 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:23:23 +0000 (20:23 -0500)
commit42c4cf5d482813067789dd5ea2e33f3b7805e7e1
treea2dc8a48f7379bcd0e9ba477c44f98a66dd1cec9
parent8a9a7b9d14c21d060301a8dd4a676ccb4ade5870
soc: qcom: smp2p: Add support for smp2p v2

smp2p v2 adds support for allowing remote processors to write outbound
smp2p items without completing the feature negotiation. This is required
for processors that start before linux to write out signals like error
and clock ready and unblock their bootup.

If a remote processor only supports v1, smp2p can version down by
mirroring the peer version during the negotiation stage.

When using smp2p version 2, the remote does not wait for the ssr ack
before setting the items. To accommodate this, set the last_value of all
the entries to 0 when SSR is detected. This forces smp2p to detect the
new values written by the remote. Because the SSR ack is skipped, the
down transition of bits is missed in smp2p version 2.

Signed-off-by: Chris Lew <chris.lew@oss.qualcomm.com>
Signed-off-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260127-smp2pv2-v3-2-4060b859b1e2@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smp2p.c