]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: stm32mp1: set ck_csi as critical clock
authorGabriel Fernandez <gabriel.fernandez@st.com>
Thu, 14 Feb 2019 10:40:43 +0000 (11:40 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 21 Feb 2019 22:13:19 +0000 (14:13 -0800)
ck_csi is used for IO compensation so it should be
considered as "always-on" and kept on.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-stm32mp1.c

index e72079de83f4d087753419a15f07f3c4f31a0f5a..f9b7d5e9491d1fefe9fb322b00f1660589996236 100644 (file)
@@ -1661,7 +1661,9 @@ static const struct clock_config stm32mp1_clock_cfg[] = {
 
        /*  External / Internal Oscillators */
        GATE_MP1(CK_HSE, "ck_hse", "clk-hse", 0, RCC_OCENSETR, 8, 0),
-       GATE_MP1(CK_CSI, "ck_csi", "clk-csi", 0, RCC_OCENSETR, 4, 0),
+       /* ck_csi is used by IO compensation and should be critical */
+       GATE_MP1(CK_CSI, "ck_csi", "clk-csi", CLK_IS_CRITICAL,
+                RCC_OCENSETR, 4, 0),
        GATE_MP1(CK_HSI, "ck_hsi", "clk-hsi-div", 0, RCC_OCENSETR, 0, 0),
        GATE(CK_LSI, "ck_lsi", "clk-lsi", 0, RCC_RDLSICR, 0, 0),
        GATE(CK_LSE, "ck_lse", "clk-lse", 0, RCC_BDCR, 0, 0),