Skip to content

Commit

Permalink
drivers: flash: mcux flexspi nor: Fix write if size > SPI_NOR_PAGE_SIZE
Browse files Browse the repository at this point in the history
This fixes a bug in the write function of the MCUX FlexSPI flash driver
if the length of the data is larger than a single page.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt authored and MaureenHelm committed Apr 15, 2021
1 parent f5f5028 commit bd67c23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/flash/flash_mcux_flexspi_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ static int flash_flexspi_nor_write(const struct device *dev, off_t offset,
flash_flexspi_nor_page_program(dev, offset, src, i);
flash_flexspi_nor_wait_bus_busy(dev);
memc_flexspi_reset(data->controller);
src += i;
offset += i;
len -= i;
}
Expand Down

0 comments on commit bd67c23

Please sign in to comment.