From: Patrice Chotard Date: Mon, 24 Mar 2025 09:40:14 +0000 (+0100) Subject: spi: spi-stm32-ospi: Make "resets" a required property X-Git-Tag: v6.16-rc1~23^2~49^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=69e3433fa5e24edc94e94b4f34e3dbb754bdedbf;p=linux-block.git 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 Link: https://patch.msgid.link/20250324-upstream_ospi_required_resets-v2-2-85a48afcedec@foss.st.com Signed-off-by: Mark Brown --- 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");