zephyr/drivers/flash
Peter A. Bigot 3d8125a47c drivers: flash: nrfx_qspi_nor: fix semaphore errors
The code generally invoked qspi_wait_for_completion() within a locked
region without verifying that an operation was successfully initiated.
This caused a deadlock whenever the operation failed, e.g. because the
data buffer was not 4-byte aligned.  Update that function to take the
result of the operation and either wait for completion or release the
lock, depending on its value.

Also uniformly use the correct type for Nordic HAL error values, and
refactor the erase module so that the correct values are displayed in
the diagnostic when something goes wrong.

Also check the alignment requirements for the flash address and
transfer size, which are highly constrained on this device.  This
driver also requires 4-byte aligned data buffer; this is checked in
the Nordic HAL.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2020-04-20 15:41:35 +02:00
..
CMakeLists.txt
flash_gecko.c drivers: flash: silabs: Fix DT_DRV_COMPAT setting 2020-04-15 06:22:40 -05:00
flash_handlers.c
flash_page_layout.c
flash_priv.h
flash_sam.c drivers: flash: atmel sam: Fix DT_DRV_COMPAT setting 2020-04-15 06:22:40 -05:00
flash_sam0.c drivers: flash: sam0: fix unaligned memory read 2020-04-11 15:34:21 -04:00
flash_shell.c drivers/flash: shell: Add optional device argument 2020-04-09 16:36:39 +02:00
flash_simulator.c
flash_stm32.c drivers/flash: stm32: Use stm32 generic compat as driver compatible 2020-04-20 03:51:36 -05:00
flash_stm32.h
flash_stm32f1x.c
flash_stm32f3x.c drivers: flash: stm32: Convert to new DT macros 2020-04-15 06:22:40 -05:00
flash_stm32f4x.c
flash_stm32f7x.c
flash_stm32f0x.c
flash_stm32g4x.c drivers: flash: stm32g4: Fix erase on wrong bank 2020-03-24 14:25:47 -05:00
flash_stm32g0x.c
flash_stm32l4x.c drivers: flash: stm32: Convert to new DT macros 2020-04-15 06:22:40 -05:00
flash_stm32wbx.c drivers/flash: stm32: Fix faulty register access 2020-01-29 15:14:22 -06:00
Kconfig
Kconfig.gecko
Kconfig.mcux
Kconfig.nios2_qspi
Kconfig.nor
Kconfig.nordic_qspi_nor
Kconfig.nrf drivers/flash/nrfx: Enable partial erase of flash 2020-04-06 22:12:33 -04:00
Kconfig.rv32m1
Kconfig.sam drivers: flash: Kconfig.sam: Enable support to SAMV71 2020-03-10 14:43:36 +02:00
Kconfig.sam0 kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
Kconfig.simulator
Kconfig.stm32 kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
Kconfig.w25qxxdv
nrf_qspi_nor.c drivers: flash: nrfx_qspi_nor: fix semaphore errors 2020-04-20 15:41:35 +02:00
soc_flash_mcux.c drivers: flash: mcux: Fix DT_DRV_COMPAT setting 2020-04-15 06:22:40 -05:00
soc_flash_nios2_qspi.c
soc_flash_nrf.c drivers: flash: nrf: Conver to new DT macros 2020-04-15 06:22:40 -05:00
soc_flash_rv32m1.c drivers: flash: rv32m1: Fix DT_DRV_COMPAT setting 2020-04-15 06:22:40 -05:00
spi_flash_w25qxxdv_defs.h
spi_flash_w25qxxdv.c drivers: flash: spi_flash_w25qxxdv: Convert to new DT_INST macros 2020-03-27 10:00:29 -05:00
spi_flash_w25qxxdv.h
spi_nor.c drivers: flash: spi-nor: fix unconditional use of BE32K 2020-04-14 09:13:34 -05:00
spi_nor.h