diff options
author | Bjorn Andersson <andersson@kernel.org> | 2024-05-29 12:54:29 -0700 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-05-29 12:54:29 -0700 |
commit | 855cf5651790807c01f2ae35ee11b04c20b6ced4 (patch) | |
tree | c17b237b2044109aaa97f60c12710602e2441f36 /drivers/hwspinlock/hwspinlock_internal.h | |
parent | 9dbd9962cfe56d210be5232349851420b5f9c8f6 (diff) | |
parent | 73100deb59c3892e280234fcc0171a5376c71788 (diff) |
Merge branch '20240529-hwspinlock-bust-v3-2-c8b924ffa5a2@quicinc.com' into rproc-next
Merge the topic branch introducing hwspin_lock_bust(), to allow invoking
this from the Qualcomm remoteproc drivers.
Diffstat (limited to 'drivers/hwspinlock/hwspinlock_internal.h')
-rw-r--r-- | drivers/hwspinlock/hwspinlock_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hwspinlock/hwspinlock_internal.h b/drivers/hwspinlock/hwspinlock_internal.h index 29892767bb7a..f298fc0ee5ad 100644 --- a/drivers/hwspinlock/hwspinlock_internal.h +++ b/drivers/hwspinlock/hwspinlock_internal.h @@ -21,6 +21,8 @@ struct hwspinlock_device; * @trylock: make a single attempt to take the lock. returns 0 on * failure and true on success. may _not_ sleep. * @unlock: release the lock. always succeed. may _not_ sleep. + * @bust: optional, platform-specific bust handler, called by hwspinlock + * core to bust a specific lock. * @relax: optional, platform-specific relax handler, called by hwspinlock * core while spinning on a lock, between two successive * invocations of @trylock. may _not_ sleep. @@ -28,6 +30,7 @@ struct hwspinlock_device; struct hwspinlock_ops { int (*trylock)(struct hwspinlock *lock); void (*unlock)(struct hwspinlock *lock); + int (*bust)(struct hwspinlock *lock, unsigned int id); void (*relax)(struct hwspinlock *lock); }; |