spi: stm32-ospi: Make usage of reset_control_acquire/release() API
authorPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 9 Jun 2025 15:05:04 +0000 (17:05 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 Jun 2025 15:21:29 +0000 (16:21 +0100)
commitcf2c3eceb757e3f28e6f1034f9bc178e1535f5cc
treed88ca52ad6264c07b485253165df8a7a94042dd9
parente51a086117ed857ea455c9ea774dbfb82f53e517
spi: stm32-ospi: Make usage of reset_control_acquire/release() API

As ospi reset is consumed by both OMM and OSPI drivers, use the reset
acquire/release mechanism which ensure exclusive reset usage.

This avoid to call reset_control_get/put() in OMM driver each time
we need to reset OSPI children and guarantee the reset line stays
deasserted.

During resume, OMM driver takes temporarily control of reset.

Fixes: 79b8a705e26c ("spi: stm32: Add OSPI driver")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patch.msgid.link/20250609-b4-upstream_ospi_reset_update-v6-1-5b602b567e8a@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-ospi.c