spi: spi-stm32-ospi: Make "resets" a required property
authorPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 24 Mar 2025 09:40:14 +0000 (10:40 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 6 Apr 2025 22:25:44 +0000 (23:25 +0100)
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>
drivers/spi/spi-stm32-ospi.c

index 668022098b1eac3628f0677e6d786e5a267346be..d002b9c16714684e4e4623f9255a7f2660c46fd1 100644 (file)
@@ -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");