flash: spi_nor: automatically run device runtime PM

Automatically handle device runtime PM for all flash API calls.
Asynchronously release the device after a small delay to minimise power
state transitions under multiple sequential API calls (e.g. NVS).

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-05-24 10:36:19 +10:00 committed by Anas Nashif
commit 986fd88416
3 changed files with 63 additions and 0 deletions

View file

@ -196,6 +196,11 @@ Other Subsystems
Flash map
=========
* ``CONFIG_SPI_NOR_IDLE_IN_DPD`` has been removed from the :kconfig:option:`CONFIG_SPI_NOR`
driver. An enhanced version of this functionality can be obtained by enabling
:ref:`pm-device-runtime` on the device (Tunable with
:kconfig:option:`CONFIG_SPI_NOR_ACTIVE_DWELL_MS`).
hawkBit
=======