drivers: flash: stm32 ospi: fix jedec id read

Flash not in OPI mode doesn't require extra
dummy cycles.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
This commit is contained in:
Georgij Cernysiov 2023-04-14 11:24:23 +02:00 committed by Carles Cufí
parent 2a2f067333
commit 091f425cd1

View file

@ -362,7 +362,6 @@ static int stm32_ospi_read_jedec_id(const struct device *dev)
OSPI_RegularCmdTypeDef cmd = ospi_prepare_cmd(OSPI_SPI_MODE, OSPI_STR_TRANSFER);
cmd.Instruction = JESD216_CMD_READ_ID;
cmd.DummyCycles = 8U;
cmd.AddressSize = HAL_OSPI_ADDRESS_NONE;
cmd.NbData = JESD216_READ_ID_LEN; /* 3 bytes in the READ ID */