soc: qcom: smsm: Support using mailbox interface
authorLuca Weiss <luca@z3ntu.xyz>
Thu, 6 Jun 2024 19:18:33 +0000 (21:18 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 13 Jun 2024 04:09:25 +0000 (23:09 -0500)
commit75287992f58a74271a083fef0356bc81d629f671
treefc0dbfb5687fb1e15606a6bc2e9482b311b4401e
parent5e66abcf1e250f032ecb18a7ecfac5287298ed8e
soc: qcom: smsm: Support using mailbox interface

Add support for using the mbox interface instead of manually writing to
the syscon. With this change the driver will attempt to get the mailbox
first, and if that fails it will fall back to the existing way of using
qcom,ipc-* properties and converting to syscon.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20240606-smsm-mbox-v2-2-8abe6b5f01da@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smsm.c