Skip to content

Commit c4af18d

Browse files
mstasiaknordicjhedberg
authored andcommitted
drivers: spi: nrfx: release constlat mode on suspend
Release instead of requesting constant latency mode on SPI suspend. Signed-off-by: Michał Stasiak <[email protected]>
1 parent f231c5f commit c4af18d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/spi/spi_nrfx_spim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static void spim_suspend(const struct device *dev)
810810
#if SPIM_CROSS_DOMAIN_PINS_HANDLE
811811
int err;
812812

813-
err = nrf_sys_event_request_global_constlat();
813+
err = nrf_sys_event_release_global_constlat();
814814
(void)err;
815815
__ASSERT_NO_MSG(err >= 0);
816816
#else

drivers/spi/spi_nrfx_spis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static void spi_nrfx_suspend(const struct device *dev)
437437
#if SPIS_CROSS_DOMAIN_PINS_HANDLE
438438
int err;
439439

440-
err = nrf_sys_event_request_global_constlat();
440+
err = nrf_sys_event_release_global_constlat();
441441
(void)err;
442442
__ASSERT_NO_MSG(err >= 0);
443443
#else

0 commit comments

Comments
 (0)