linux/drivers/hwspinlock
Wolfram Sang e088ffa9a0 hwspinlock: propagate errno when registering single lock
hwspin_lock_register_single() always returns 0 despite checking the
result from radix_tree_insert(). Propagate the errno to make sanity
checks in callers of this function actually meaningful.

Fixes: 300bab9770 ("hwspinlock/core: register a bank of hwspinlocks in a single API call")
Link: https://sashiko.dev/#/patchset/20260319105947.6237-1-wsa%2Brenesas%40sang-engineering.com # review of patch 14
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20260512084856.30497-2-wsa+renesas@sang-engineering.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
2026-07-09 15:31:44 -05:00
..
hwspinlock_core.c hwspinlock: propagate errno when registering single lock 2026-07-09 15:31:44 -05:00
hwspinlock_internal.h hwspinlock: Introduce hwspin_lock_bust() 2024-05-29 12:52:26 -07:00
Kconfig hwspinlock: u8500: delete driver 2026-04-06 09:43:18 -05:00
Makefile hwspinlock: u8500: delete driver 2026-04-06 09:43:18 -05:00
omap_hwspinlock.c soc: driver updates for 7.0 2026-02-10 20:45:30 -08:00
qcom_hwspinlock.c hwspinlock: qcom: avoid uninitialized struct members 2026-06-08 21:51:12 -05:00
sprd_hwspinlock.c hwspinlock: sprd: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:57 -06:00
stm32_hwspinlock.c hwspinlock: stm32: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:15 -06:00
sun6i_hwspinlock.c hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00