zephyr/drivers/clock_control
Andrzej Głąbek c8fff0c77d drivers: clock_control_nrf2: Add missing cancelation of request
This is a follow-up to commit fe0e2dbc60.

If `nrf_clock_control_request_sync()` ends up with a timeout, before
returning it must cancel the request that was not fulfilled on time.
Otherwise, the request may actually finish successfully a bit later,
but the caller will not be aware that the clock needs to be released
(since the call resulted in an error). And actually even more serious
problem is that because the `req` structure is placed on stack, after
the function returns, the contents of this structure will be probably
overwritten with some other data, so if the request finishes at that
point, an attempt to execute the callback function pointed by this
structure will most likely cause a crash.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2024-12-21 15:04:58 +01:00
..
beetle_clock_control.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_agilex_ll.c
clock_agilex.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_adsp.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_agilex5_ll.c drivers: clock_control: Agilex5 clock control driver updates 2024-12-16 17:12:34 -05:00
clock_control_agilex5_ll.h drivers: clock_control: Agilex5 clock control driver updates 2024-12-16 17:12:34 -05:00
clock_control_agilex5.c drivers: clock_control: Agilex5 clock control driver updates 2024-12-16 17:12:34 -05:00
clock_control_ambiq.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_arm_scmi.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_ast10x0.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_esp32.c drivers: clock_control: limit APPCPU clock setup 2024-12-12 11:38:22 +01:00
clock_control_fixed_rate.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_gd32.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_ifx_cat1.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_litex.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_litex.h sys: util: define bits per byte, nibble, and nibbles per byte 2024-10-15 19:05:06 +01:00
clock_control_lpc11u6x.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_lpc11u6x.h
clock_control_max32.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mchp_xec.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_ccm_rev2.c drivers: clock_control: add i3c clock for clock_control_mcux_ccm_rev2.c 2024-12-18 01:01:37 +01:00
clock_control_mcux_ccm.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_mcg.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_pcc.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_scg_k4.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_scg.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_sim.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_mcux_syscon.c drivers: syscon: update syscon driver to add lpi2c clock 2024-12-16 20:50:37 +01:00
clock_control_npcm.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_npcx.c driver: clock_control: npcx: use CONFIG_CLOCK_CONTROL_LOG_LEVEL 2024-12-19 04:18:34 +01:00
clock_control_nrf2_common.c drivers: clock_control_nrf2: Add missing cancelation of request 2024-12-21 15:04:58 +01:00
clock_control_nrf2_common.h drivers: clock_control: nrf54h-common: add utility to obtain LFOSC acc 2024-12-18 12:46:20 +01:00
clock_control_nrf2_fll16m.c drivers: clock_control: nrf54h-fll16m: use values from BICR 2024-12-18 12:46:20 +01:00
clock_control_nrf2_global_hsfll.c drivers: clock_control: nrf2: add support for global hfsll clock 2024-12-17 15:22:37 +01:00
clock_control_nrf2_hfxo.c drivers: clock_control: nrf54h-hfxo: use values from BICR 2024-12-18 12:46:20 +01:00
clock_control_nrf2_hsfll.c drivers: clock_control: nrf2: add support for global hfsll clock 2024-12-17 15:22:37 +01:00
clock_control_nrf2_lfclk.c drivers: clock_control: nrf54h-lfclk: use values from BICR 2024-12-18 12:46:20 +01:00
clock_control_nrf_auxpll.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_nrf.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_numaker_scc.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_nxp_s32.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_pwm.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_r8a779f0_cpg_mssr.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_r8a7795_cpg_mssr.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_renesas_cpg_mssr.c
clock_control_renesas_cpg_mssr.h
clock_control_renesas_ra_cgc.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_rpi_pico.c drivers: clock_control: rpi_pico: Make pinctrl-0 optional 2024-12-05 12:29:33 +01:00
clock_control_rv32m1_pcc.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_sam_pmc.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_si32_ahb.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_si32_apb.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_si32_pll.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_silabs_series.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_smartbond.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_control_wch_rcc.c drivers: clock_control: Place API into iterable section 2024-11-29 21:46:34 +01:00
clock_stm32_ll_common.c drivers: clock_control: stm32 ll common: fix RCC pll disable 2024-12-19 15:19:13 +01:00
clock_stm32_ll_common.h drivers: clock control: stm32 function to get 48MHz freq 2024-12-13 20:05:11 +01:00
clock_stm32_ll_h5.c drivers: clock: stm32: support STM32_CLOCK_DIV() 2024-12-11 08:00:03 +01:00
clock_stm32_ll_h7.c drivers: clock: stm32: support STM32_CLOCK_DIV() 2024-12-11 08:00:03 +01:00
clock_stm32_ll_mp1.c drivers: clock: stm32: support STM32_CLOCK_DIV() 2024-12-11 08:00:03 +01:00
clock_stm32_ll_u5.c drivers: clock: stm32: support STM32_CLOCK_DIV() 2024-12-11 08:00:03 +01:00
clock_stm32_ll_wb0.c drivers: clock: stm32: support STM32_CLOCK_DIV() 2024-12-11 08:00:03 +01:00
clock_stm32_ll_wba.c drivers: clock: stm32: support STM32_CLOCK_DIV() 2024-12-11 08:00:03 +01:00
clock_stm32_mco.c drivers: Add driver for STM32 MCO peripheral 2024-09-16 20:19:57 +02:00
clock_stm32_mux.c drivers: clock_control: remove '&' when assigning clock_control_xxx_init 2024-06-27 08:50:20 -04:00
clock_stm32c0.c
clock_stm32f0_f3.c drivers: clock: stm32f1,f3: fix adc prescaler 2024-06-04 13:39:14 +02:00
clock_stm32f1.c drivers: clock_control: Add clock sources to common enabled_clock check 2024-09-16 20:19:57 +02:00
clock_stm32f2_f4_f7.c drivers: clock control: stm32 function to get 48MHz freq 2024-12-13 20:05:11 +01:00
clock_stm32g0_u0.c drivers: clock_control: Add stm32u0 clock control support 2024-08-26 11:28:04 -04:00
clock_stm32g4.c
clock_stm32l0_l1.c drivers: clock_control: stm32: adding config_regulator_voltage for L0 2024-05-30 09:47:12 -05:00
clock_stm32l4_l5_wb_wl.c
CMakeLists.txt drivers: clock_control: nrf2: add support for global hfsll clock 2024-12-17 15:22:37 +01:00
Kconfig drivers: add the ch32v00x clock controller 2024-11-26 14:41:46 +00:00
Kconfig.agilex5
Kconfig.ambiq
Kconfig.arm_scmi firmware: scmi: add support for clock management protocol 2024-08-19 10:05:16 -04:00
Kconfig.aspeed
Kconfig.beetle
Kconfig.cavs
Kconfig.esp32
Kconfig.fixed
Kconfig.gd32
Kconfig.ifx_cat1
Kconfig.litex
Kconfig.lpc11u6x boards: nxp: Removing CONFIG_PINCTRL from the boards defconfig 2024-10-15 19:09:45 -04:00
Kconfig.max32 drivers: Add MAX32690 clock control driver 2024-05-29 07:30:12 +02:00
Kconfig.mcux_ccm
Kconfig.mcux_ccm_rev2
Kconfig.mcux_mcg
Kconfig.mcux_pcc
Kconfig.mcux_scg drivers: clock_control: Add MCUX SCG K4 driver 2024-09-20 15:14:11 -05:00
Kconfig.mcux_sim
Kconfig.mcux_syscon boards: nxp: Removing CONFIG_PINCTRL from the boards defconfig 2024-10-15 19:09:45 -04:00
Kconfig.npcm drivers: clock_control: add npcm clock control driver 2024-11-16 15:06:25 -05:00
Kconfig.npcx
Kconfig.nrf drivers: clock_control: nrf2: add support for global hfsll clock 2024-12-17 15:22:37 +01:00
Kconfig.nrf_auxpll drivers: clock_control: nrf_auxpll: add initial driver 2024-05-29 08:30:42 -07:00
Kconfig.numaker
Kconfig.nxp_s32
Kconfig.pwm
Kconfig.rcar
Kconfig.renesas_ra_cgc dts: bindings: clock: Change clock control binding for Renesas RA 2024-08-19 09:59:27 -04:00
Kconfig.rpi_pico soc: raspberrypi: Drop PINCTRL from Kconfig.defconfig 2024-11-25 14:42:01 +01:00
Kconfig.rv32m1
Kconfig.sam
Kconfig.si32 drivers: clock_control: Add initial SiM3U1xx support 2024-08-26 18:51:36 +02:00
Kconfig.silabs drivers: clock_control: silabs: Add clock control driver 2024-09-30 17:12:01 +01:00
Kconfig.smartbond dts/bindings/renesas,smartbond-lp-osc: Substitute calibration-interval 2024-05-21 18:43:43 +02:00
Kconfig.stm32 drivers: clock_control: stm32 mco driver get define from DTS 2024-12-05 19:59:47 -05:00
Kconfig.wch_rcc drivers: add the ch32v00x clock controller 2024-11-26 14:41:46 +00:00
Kconfig.xec
nrf_clock_calibration.c driver: clock_control: Add to nrf clock control calib in progres API 2024-12-12 16:21:11 +01:00
nrf_clock_calibration.h