From 5246c161092187423cce5f89b5776f997e8a7ec8 Mon Sep 17 00:00:00 2001 From: Georgij Cernysiov Date: Thu, 6 Jun 2024 12:14:43 +0200 Subject: [PATCH] drivers: flash: stm32 ospi correct memory map return code Use ENOTSUP instead of EIO to signal about not supported configuration. Signed-off-by: Georgij Cernysiov --- drivers/flash/flash_stm32_ospi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/flash/flash_stm32_ospi.c b/drivers/flash/flash_stm32_ospi.c index 3232793662869c..b5696a27d82fa4 100644 --- a/drivers/flash/flash_stm32_ospi.c +++ b/drivers/flash/flash_stm32_ospi.c @@ -995,7 +995,7 @@ static int stm32_ospi_set_memorymap(const struct device *dev) (stm32_ospi_hal_address_size(dev) == HAL_OSPI_ADDRESS_24_BITS)) { /* OPI mode and 3-bytes address size not supported by memory */ LOG_ERR("OSPI_SPI_MODE in 3Bytes addressing is not supported"); - return -EIO; + return -ENOTSUP; } /* Initialize the read command */