clk: samsung: gs101: gpio_peric0_pclk needs to be kept on
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 30 Jan 2024 09:36:40 +0000 (09:36 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 1 Feb 2024 09:56:19 +0000 (10:56 +0100)
This pclk clock is required any time we access the pinctrl registers of
this block.

Since pinctrl-samsung doesn't support a clock at the moment, we just
keep the kernel from disabling it at boot, until we have an update for
pinctrl-samsung to handle this required clock, at which point we'll be
able to drop the flag again.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20240130093812.1746512-2-andre.draszik@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/clk/samsung/clk-gs101.c

index 4a0520e825b62dae8c4aa2ecdbd9c41c587add2b..61bb0dcf84eeef639b5f57e142ef23d86d7395de 100644 (file)
@@ -2848,7 +2848,7 @@ static const struct samsung_gate_clock peric0_gate_clks[] __initconst = {
        GATE(CLK_GOUT_PERIC0_GPIO_PERIC0_PCLK,
             "gout_peric0_gpio_peric0_pclk", "mout_peric0_bus_user",
             CLK_CON_GAT_GOUT_BLK_PERIC0_UID_GPIO_PERIC0_IPCLKPORT_PCLK,
-            21, 0, 0),
+            21, CLK_IGNORE_UNUSED, 0),
        /* Disabling this clock makes the system hang. Mark the clock as critical. */
        GATE(CLK_GOUT_PERIC0_LHM_AXI_P_PERIC0_I_CLK,
             "gout_peric0_lhm_axi_p_peric0_i_clk", "mout_peric0_bus_user",