Re: [PATCH v4 03/15] hwspinlock: add helpers to retrieve core data

From: Chen-Yu Tsai

Date: Tue Mar 10 2026 - 05:44:43 EST


On Tue, Mar 10, 2026 at 3:56 PM Wolfram Sang
<wsa+renesas@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> This is a first step to hide internal core structs from hwspinlock
> providers. It adds helper functions to retrieve the data needed by them.
> Because all users are only within the hwspinlock subsystem and the
> change there is trivial, conversion is included in this patch as well.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> ---
> drivers/hwspinlock/hwspinlock_core.c | 12 ++++++++++++
> drivers/hwspinlock/omap_hwspinlock.c | 4 ++--
> drivers/hwspinlock/qcom_hwspinlock.c | 11 ++++++-----
> drivers/hwspinlock/sprd_hwspinlock.c | 6 +++---
> drivers/hwspinlock/stm32_hwspinlock.c | 4 ++--

> drivers/hwspinlock/sun6i_hwspinlock.c | 4 ++--

Acked-by: Chen-Yu Tsai <wens@xxxxxxxxxx> # sun6i