Skip to content
Snippets Groups Projects
Commit 7c327d56 authored by Richard Maina's avatar Richard Maina Committed by Bjorn Andersson
Browse files

hwspinlock: Introduce hwspin_lock_bust()


When a remoteproc crashes or goes down unexpectedly this can result in
a state where locks held by the remoteproc will remain locked possibly
resulting in deadlock. This new API hwspin_lock_bust() allows
hwspinlock implementers to define a bust operation for freeing previously
acquired hwspinlocks after verifying ownership of the acquired lock.

Signed-off-by: default avatarRichard Maina <quic_rmaina@quicinc.com>
Reviewed-by: default avatarBjorn Andersson <andersson@kernel.org>
Signed-off-by: default avatarChris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20240529-hwspinlock-bust-v3-1-c8b924ffa5a2@quicinc.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 1613e604
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment