]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: qcom: smem: Add qcom_smem_bust_hwspin_lock_by_host()
authorChris Lew <quic_clew@quicinc.com>
Wed, 29 May 2024 18:09:57 +0000 (11:09 -0700)
committerBjorn Andersson <andersson@kernel.org>
Wed, 29 May 2024 19:59:14 +0000 (12:59 -0700)
commit2e3f0d693875db698891ffe89a18121bda5b95b8
tree81ad5bde062465aea4def6d7749a19cc8b22f1e5
parent855cf5651790807c01f2ae35ee11b04c20b6ced4
soc: qcom: smem: Add qcom_smem_bust_hwspin_lock_by_host()

Add qcom_smem_bust_hwspin_lock_by_host to enable remoteproc to bust the
hwspin_lock owned by smem. In the event the remoteproc crashes
unexpectedly, the remoteproc driver can invoke this API to try and bust
the hwspin_lock and release the lock if still held by the remoteproc
device.

Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20240529-hwspinlock-bust-v3-3-c8b924ffa5a2@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smem.c
include/linux/soc/qcom/smem.h