Skip to content
Commit c11ef527 authored by Peter Bigot's avatar Peter Bigot Committed by Maureen Helm
Browse files

drivers: flash: nrf_qspi_nor: improve diagnostics/behavior of erase



Erase can only succeed if the address is sector-aligned, and the span
to erase is an integer multiple of the sector size.  Validate this
before starting the process of erasing things.

Also reduce the check that the affected region is within the device
span to its minimal equivalent conditions.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent f6cfdf79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment