]> www.infradead.org Git - users/jedix/linux-maple.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)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 5 Mar 2025 19:09:19 +0000 (20:09 +0100)
commitf2052a4a62465c0037aef7ea7426bffdb3531e41
tree3a7ca9f23e2317e737492d8b07c9b088de49d468
parent2014c95afecee3e76ca4a56956a936e23283f05b
clk: samsung: gs101: fix synchronous external abort in samsung_clk_save()

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>
drivers/clk/samsung/clk-gs101.c