summary refs log tree commit diff
path: root/drivers/clk/mediatek/clk-mt8186-topckgen.c
diff options
context:
space:
mode:
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>2022-04-12 13:27:50 +0100
committerStephen Boyd <sboyd@kernel.org>2022-05-18 17:30:36 -0700
commite98839fb56ea2b5bdcea47128871df4a587fc181 (patch)
tree071823a9a8e666a3edee27efe511a7b0a1b144ae /drivers/clk/mediatek/clk-mt8186-topckgen.c
parent2b0f3d70ce7ca68c10b3a5beaf2da6a03c5b3c11 (diff)
downloadlinux-e98839fb56ea2b5bdcea47128871df4a587fc181.tar.gz
clk: ingenic-tcu: Fix missing TCU clock for X1000 SoCs
The TCU clock gate on X1000 wasn't requested by the driver and could
be gated automatically later on in boot, which prevents timers from
running and breaks PWM.

Add a workaround to support old device trees that don't specify the
"tcu" clock gate. In this case the kernel will print a warning and
attempt to continue without the clock, which is wrong, but it could
work if "clk_ignore_unused" is in the kernel arguments.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20220412122750.279058-3-aidanmacdonald.0x0@gmail.com
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt8186-topckgen.c')
0 files changed, 0 insertions, 0 deletions