summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-stm32-ospi.c
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@foss.st.com>2025-03-24 10:40:14 +0100
committerMark Brown <broonie@kernel.org>2025-04-06 23:25:44 +0100
commit69e3433fa5e24edc94e94b4f34e3dbb754bdedbf (patch)
tree0df1a88010e2f86400b917b2f0879f0ba96c061f /drivers/spi/spi-stm32-ospi.c
parentd58b4eb7c03cabb10d4eebc89d7596e06376e54d (diff)
spi: spi-stm32-ospi: Make "resets" a required property
On some STM32MP2 SoCs, an Octo Memory Manager is embedded and need to retrieve OSPI's reset to perform its own initialization. Make "resets" property mandatory. Fixes: 79b8a705e26c ("spi: stm32: Add OSPI driver") Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Link: https://patch.msgid.link/20250324-upstream_ospi_required_resets-v2-2-85a48afcedec@foss.st.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-stm32-ospi.c')
-rw-r--r--drivers/spi/spi-stm32-ospi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-stm32-ospi.c b/drivers/spi/spi-stm32-ospi.c
index 668022098b1e..d002b9c16714 100644
--- a/drivers/spi/spi-stm32-ospi.c
+++ b/drivers/spi/spi-stm32-ospi.c
@@ -804,7 +804,7 @@ static int stm32_ospi_get_resources(struct platform_device *pdev)
return ret;
}
- ospi->rstc = devm_reset_control_array_get_optional_exclusive(dev);
+ ospi->rstc = devm_reset_control_array_get_exclusive(dev);
if (IS_ERR(ospi->rstc))
return dev_err_probe(dev, PTR_ERR(ospi->rstc),
"Can't get reset\n");