Skip to content

Commit aafaa4d

Browse files
andredkrzk
authored andcommitted
clk: samsung: avoid warning message on legacy Exynos (auto clock gating)
We currently print a warning message that the IO memory size is not compatible with automatic clock gating for many Exynos-based boards, including legacy ones, even if not requested to enable automatic clock gating in the first place. Change the test in question to avoid that warning. Fixes: 298fac4 ("clk: samsung: Implement automatic clock gating mode for CMUs") Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Closes: https://lore.kernel.org/all/8b2c412d-3e1e-4be0-a9d5-ef67f6f0d409@samsung.com/ Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: André Draszik <andre.draszik@linaro.org> Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Link: https://patch.msgid.link/20260109-clk-samsung-autoclk-updates-v1-1-2394dcf242a9@linaro.org Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
1 parent eaf9206 commit aafaa4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/samsung/clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void __init samsung_cmu_register_clocks(struct samsung_clk_provider *ctx,
462462
const struct samsung_cmu_info *cmu,
463463
struct device_node *np)
464464
{
465-
if (samsung_is_auto_capable(np) && cmu->auto_clock_gate)
465+
if (cmu->auto_clock_gate && samsung_is_auto_capable(np))
466466
ctx->auto_clock_gate = cmu->auto_clock_gate;
467467

468468
ctx->gate_dbg_offset = cmu->gate_dbg_offset;

0 commit comments

Comments
 (0)