]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: samsung: gs101: fix synchronous external abort in samsung_clk_save()
authorPeter Griffin <peter.griffin@linaro.org>
Mon, 3 Mar 2025 13:11:21 +0000 (13:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:24 +0000 (12:54 -0700)
commit0a024f992500162d1f7f28daf058679cc427402f
tree9d22a1dfe34e2b511c962609ca1982ca43f8b0f9
parentd14ef11b1d1ed6cd25b1a131bb7a61130c051fc9
clk: samsung: gs101: fix synchronous external abort in samsung_clk_save()

commit f2052a4a62465c0037aef7ea7426bffdb3531e41 upstream.

EARLY_WAKEUP_SW_TRIG_*_SET and EARLY_WAKEUP_SW_TRIG_*_CLEAR
registers are only writeable. Attempting to read these registers
during samsung_clk_save() causes a synchronous external abort.

Remove these 8 registers from cmu_top_clk_regs[] array so that
system suspend gets further.

Note: the code path can be exercised using the following command:
echo mem > /sys/power/state

Fixes: 2c597bb7d66a ("clk: samsung: clk-gs101: Add cmu_top, cmu_misc and cmu_apm support")
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250303-clk-suspend-fix-v1-1-c2edaf66260f@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/samsung/clk-gs101.c