[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a0f9115f66ff2993ff8dcce768a071dccb011579.camel@pengutronix.de>
Date: Thu, 10 Apr 2025 14:48:36 +0200
From: Philipp Zabel <p.zabel@...gutronix.de>
To: Patrice Chotard <patrice.chotard@...s.st.com>, Mark Brown
<broonie@...nel.org>, Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>
Cc: linux-kernel@...r.kernel.org, linux-spi@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 1/2] reset: Add
devm_reset_control_array_get_exclusive_released()
On Do, 2025-04-10 at 14:23 +0200, Patrice Chotard wrote:
> Add the released variant of devm_reset_control_array_get_exclusive().
> Needed by spi-smt32-ospi driver as same reset line is ulso used by
> stm32-omm driver.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@...s.st.com>
> ---
> include/linux/reset.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/linux/reset.h b/include/linux/reset.h
> index 2986ced69a026947c8aafa89cdddf1e4088caef7..840d75d172f6239540bd12ab701103b7f02a624b 100644
> --- a/include/linux/reset.h
> +++ b/include/linux/reset.h
> @@ -1004,6 +1004,12 @@ devm_reset_control_array_get_exclusive(struct device *dev)
> return devm_reset_control_array_get(dev, RESET_CONTROL_EXCLUSIVE);
> }
>
> +static inline struct reset_control *
> +devm_reset_control_array_get_exclusive_released(struct device *dev)
> +{
> + return devm_reset_control_array_get(dev, RESET_CONTROL_EXCLUSIVE_RELEASED);
> +}
Reviewed-by: Philipp Zabel <p.zabel@...gutronix.de>
But this might not even be necessary, see next patch.
regards
Philipp
Powered by blists - more mailing lists