Re: [PATCH v2 1/4] hwspinlock: Introduce hwspin_lock_bust()

From: Bjorn Andersson
Date: Tue May 28 2024 - 22:07:07 EST


On Fri, May 24, 2024 at 06:26:40PM -0700, Chris Lew wrote:
> From: Richard Maina <quic_rmaina@xxxxxxxxxxx>
>
> 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: Richard Maina <quic_rmaina@xxxxxxxxxxx>
> Signed-off-by: Chris Lew <quic_clew@xxxxxxxxxxx>

Reviewed-by: Bjorn Andersson <andersson@xxxxxxxxxx>

Regards,
Bjorn