-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers/flash: deprecation of flash_write_protection_set() API #33216
Merged
nashif
merged 29 commits into
zephyrproject-rtos:master
from
nvlsianpu:deprecate_flash_protecton_API
Mar 29, 2021
Merged
drivers/flash: deprecation of flash_write_protection_set() API #33216
nashif
merged 29 commits into
zephyrproject-rtos:master
from
nvlsianpu:deprecate_flash_protecton_API
Mar 29, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nvlsianpu
force-pushed
the
deprecate_flash_protecton_API
branch
4 times, most recently
from
March 12, 2021 12:52
111d10e
to
fd63bfe
Compare
github-actions
bot
added
platform: Silabs
Silicon Labs
platform: STM32
ST Micro STM32
labels
Mar 12, 2021
nvlsianpu
force-pushed
the
deprecate_flash_protecton_API
branch
from
March 12, 2021 17:06
ed3f223
to
85f289d
Compare
nvlsianpu
force-pushed
the
deprecate_flash_protecton_API
branch
from
March 12, 2021 17:19
85f289d
to
b203ca3
Compare
nvlsianpu
changed the title
drivers/flash/nrf_qspi_nor: integrate protection service into write/e…
drivers/flash: deprecation of flash_write_protection_set() API
Mar 12, 2021
nvlsianpu
added
area: Drivers
area: Flash
area: API
Changes to public APIs
and removed
area: API
Changes to public APIs
labels
Mar 12, 2021
github-actions
bot
added
the
area: Tests
Issues related to a particular existing or missing test
label
Mar 16, 2021
nvlsianpu
force-pushed
the
deprecate_flash_protecton_API
branch
3 times, most recently
from
March 16, 2021 14:23
eda53bf
to
5a3c6fc
Compare
nvlsianpu
force-pushed
the
deprecate_flash_protecton_API
branch
from
March 16, 2021 14:52
5a3c6fc
to
f74a259
Compare
github-actions
bot
added
area: Documentation
Release Notes
To be mentioned in the release notes
labels
Mar 16, 2021
nvlsianpu
requested review from
carlescufi,
dcpleung,
de-nordic,
galak and
jakub-uC
as code owners
March 16, 2021 14:55
Flash write protection services were integrated into erase and write procedures. This is step required for fixing following issue: Multi-threading flash access is not supported by flash_write_protection_set(). flash_write_protection_set() will be deprecated Signed-off-by: Andrzej Puzdrowski <[email protected]>
Flash write protection services were integrated into erase and write procedures. This is step required for fixing following issue: Multi-threading flash access is not supported by flash_write_protection_set(). flash_write_protection_set() will be deprecated Signed-off-by: Andrzej Puzdrowski <[email protected]>
Flash write protection services were integrated into erase and write procedures. This is step required for fixing following issue: Multi-threading flash access is not supported by flash_write_protection_set(). flash_write_protection_set() will be deprecated Signed-off-by: Andrzej Puzdrowski <[email protected]>
Flash write protection services were integrated into erase and write procedures. This is step required for fixing following issue: Multi-threading flash access is not supported by flash_write_protection_set(). flash_write_protection_set() will be deprecated Signed-off-by: Andrzej Puzdrowski <[email protected]>
…rase Flash write protection services were integrated into erase and write procedures. This is step required for fixing following issue: Multi-threading flash access is not supported by flash_write_protection_set(). flash_write_protection_set() will be deprecated Signed-off-by: Andrzej Puzdrowski <[email protected]>
Flash write protection services were integrated into erase and write procedures. This is step required for fixing following issue: Multi-threading flash access is not supported by flash_write_protection_set(). flash_write_protection_set() will be deprecated As CONFIG_FLASH_SIMULATOR_ERASE_PROTECT become a dead option. this commit removes it as well. Signed-off-by: Andrzej Puzdrowski <[email protected]>
Made write_protection handler not mandatory. flash_write_protection_set() becomes no-operation. If write_protection handler is provided by the driver implementation it will be called within flash_writ() and flash_erase(). Signed-off-by: Andrzej Puzdrowski <[email protected]>
flash_write_protection_set() API was deprecated so driver implementation interface is left behind as well. This patch removes all implementation pointed by the interface 'struct flash_driver_api.write_protection'. Signed-off-by: Andrzej Puzdrowski <[email protected]>
flash_write_protection_set() was deprecated. This patch removes usage of it and the test case which was testing deprecated API behaviors. Signed-off-by: Andrzej Puzdrowski <[email protected]>
…sage This patch removes scenario which was testing deprecated API behaviors. Needed as As flash_write_protection_set() was deprecated and became no-operation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
flash_write_protection_set() was deprecated. This patch removes usage of it. Signed-off-by: Andrzej Puzdrowski <[email protected]>
flash_write_protection_set() was deprecated. This patch removes usage of it and the test case which was testing deprecated API behaviors. Signed-off-by: Andrzej Puzdrowski <[email protected]>
Removed two unneeded `if` statements. These statements had not effect in function results. Signed-off-by: Andrzej Puzdrowski <[email protected]>
This patch removes scenario which was testing deprecated API behaviors. Needed as As flash_write_protection_set() was deprecated and became no-operation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
This patch removes scenario which was testing deprecated API behaviors. Needed as As flash_write_protection_set() was deprecated and became no-operation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
This patch removes scenario which was testing deprecated API behaviors. Needed as As flash_write_protection_set() was deprecated and became no-operation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
…sage This patch removes scenario which was testing deprecated API behaviors. Needed as As flash_write_protection_set() was deprecated and became no-operation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
This patch removes scenario which was testing deprecated API behaviors. Needed as As flash_write_protection_set() was deprecated and became no-operation. Signed-off-by: Andrzej Puzdrowski <[email protected]>
The API is deprecated as it was decided to build in the flash protection service into write and erase procedures. This is solution chosen for fix following issue: When two or more threads writes to flash device it is possible that flash protection will be enabled by one of threads despite another thread(s) still needs it disabled. fixes zephyrproject-rtos#3127 Signed-off-by: Andrzej Puzdrowski <[email protected]>
Added note on deprecation of the API and description of flash drivers changes. Signed-off-by: Andrzej Puzdrowski <[email protected]>
Added integration_platforms with nrf52840dk_nrf52840. Signed-off-by: Andrzej Puzdrowski <[email protected]>
henrikbrixandersen
approved these changes
Mar 28, 2021
This driver file couldn't be compiled due the syntax error. Signed-off-by: Andrzej Puzdrowski <[email protected]>
sylvioalves
approved these changes
Mar 29, 2021
trond-snekvik
added a commit
to trond-snekvik/fw-nrfconnect-nrf
that referenced
this pull request
Apr 28, 2021
Flash write protection is now handled automatically inside the flash write and erase functions, and flash_write_protection_set is deprecated. See zephyrproject-rtos/zephyr#33216 for details. Signed-off-by: Trond Einar Snekvik <[email protected]>
trond-snekvik
added a commit
to trond-snekvik/fw-nrfconnect-nrf
that referenced
this pull request
Apr 30, 2021
Flash write protection is now handled automatically inside the flash write and erase functions, and flash_write_protection_set is deprecated. See zephyrproject-rtos/zephyr#33216 for details. Signed-off-by: Trond Einar Snekvik <[email protected]>
carlescufi
pushed a commit
to nrfconnect/sdk-nrf
that referenced
this pull request
Apr 30, 2021
Flash write protection is now handled automatically inside the flash write and erase functions, and flash_write_protection_set is deprecated. See zephyrproject-rtos/zephyr#33216 for details. Signed-off-by: Trond Einar Snekvik <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: API
Changes to public APIs
area: Disk Access
area: Documentation
area: Drivers
area: EEPROM
area: File System
area: Flash
area: Samples
Samples
area: Settings
Settings subsystem
area: Shell
Shell subsystem
area: Storage
Storage subsystem
area: Tests
Issues related to a particular existing or missing test
platform: ESP32
Espressif ESP32
platform: nRF
Nordic nRFx
platform: NXP
NXP
platform: Silabs
Silicon Labs
platform: STM32
ST Micro STM32
Release Notes
To be mentioned in the release notes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The API is deprecated as it was decided to build in the flash protection
service into write and erase procedures.
This is solution chosen for fix following issue:
When two or more threads writes to flash device it is
possible that flash protection will be enabled by one of
threads despite another thread(s) still needs it disabled.
fixes #31217
Additionally:
fs/nvs:
Removed two unneeded
if
statements. These statements had noteffect in function results.
Signed-off-by: Andrzej Puzdrowski [email protected]