Skip to content
Snippets Groups Projects
Commit a44c06e2 authored by Yann Gautier's avatar Yann Gautier Committed by Sebastien PASDELOUP
Browse files

clk: stm32mp1_clk: skip always-on clocks in stm32mp1_clock_resume()


Gateable clocks, listed in stm32mp1_clk_gate[] table, get resumed in
stm32mp1_clock_resume() function, when returning from Standby state.
If a clock is always-on, like RTC, it doesn't get a refcount. So the
resume function tries to disable it. Such clocks should then be skipped
in the gate resume loop.

Signed-off-by: default avatarYann Gautier <yann.gautier@foss.st.com>
Change-Id: Iac7e977fa4916614522a2270a44f08f243238943
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/230363


Reviewed-by: default avatarCITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: default avatarCIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: default avatarLionel DEBIEVE <lionel.debieve@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/230856


Reviewed-by: default avatarSebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
Tested-by: default avatarSebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
parent 32ad12b4
No related branches found
No related tags found
1 merge request!2Integrate changes of v2.4-stm32mp-r2.1 version from ST
......@@ -3374,6 +3374,10 @@ void stm32mp1_clock_resume(void)
for (idx = 0U; idx < NB_GATES; idx++) {
struct stm32mp1_clk_gate const *gate = gate_ref(idx);
if (clock_is_always_on(gate->index)) {
continue;
}
if (gate_is_non_secure(gate)) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment