From 014be5698ed0645f1d5263b354c27fc3ba77b281 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 14 Mar 2026 18:01:51 +0100 Subject: [PATCH 1/2] MAINTAINERS: Update remoteproc repo url for hwspinlock Since 2021, the remoteproc repo is not hosted anymore in Bjorn's personal namespace, but commit cc73f503f7ec ("MAINTAINERS: Update remoteproc repo url") only updated the url for remoteproc and rpmsg in MAINTAINERS file. The old repository is still accessible, but it's not updated since 2021 and is not anymore listed in https://git.kernel.org/ . Update the url for hwspinlock too. Signed-off-by: Antonio Borneo Link: https://lore.kernel.org/r/20260314170151.18319-1-antonio.borneo@foss.st.com Signed-off-by: Bjorn Andersson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 15011f5752a9..477be16693db 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11430,7 +11430,7 @@ M: Bjorn Andersson R: Baolin Wang L: linux-remoteproc@vger.kernel.org S: Maintained -T: git git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git hwspinlock-next +T: git https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git hwspinlock-next F: Documentation/devicetree/bindings/hwlock/ F: Documentation/locking/hwspinlock.rst F: drivers/hwspinlock/ From e088ffa9a00eaaaf90da74763e774ca160969c26 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Tue, 12 May 2026 10:48:23 +0200 Subject: [PATCH 2/2] 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: 300bab9770e2 ("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 Link: https://lore.kernel.org/r/20260512084856.30497-2-wsa+renesas@sang-engineering.com Signed-off-by: Bjorn Andersson --- drivers/hwspinlock/hwspinlock_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwspinlock/hwspinlock_core.c b/drivers/hwspinlock/hwspinlock_core.c index cc8e952a6772..a509b73da190 100644 --- a/drivers/hwspinlock/hwspinlock_core.c +++ b/drivers/hwspinlock/hwspinlock_core.c @@ -472,7 +472,7 @@ static int hwspin_lock_register_single(struct hwspinlock *hwlock, int id) out: mutex_unlock(&hwspinlock_tree_lock); - return 0; + return ret; } static struct hwspinlock *hwspin_lock_unregister_single(unsigned int id)