Searched hist:"6 fb522dec0c0eae6f3be80b85714629989883ade" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/drivers/st/clk/ |
| H A D | clk-stm32-core.c | 6fb522dec0c0eae6f3be80b85714629989883ade Mon Aug 11 06:37:24 UTC 2025 Gabriel Fernandez <gabriel.fernandez@foss.st.com> fix(st-clock): prevent panic when external oscillator is absent
To deactivate the external oscillator, the frequency must be set to 0 in the device tree. The frequency check for 0 was implemented in clk_stm32_osc_gate_enable() and clk_stm32_osc_gate_disable(), but missing in clk_stm32_osc_gate_is_enabled(). Since clk_stm32_osc_gate_is_enabled() is called by clk_enable() to verify if the clock is actually enabled, this fix prevents a panic when the oscillator is not present.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: I90dc671f39bd46d0db19d7532aee9ec7b449ba9d
|