]> git.itanic.dy.fi Git - linux-stable/commit
clk: ralink: avoid to set 'CLK_IS_CRITICAL' flag for gates
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 27 Jul 2021 05:55:37 +0000 (07:55 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sun, 29 Aug 2021 05:24:06 +0000 (22:24 -0700)
commitc16edf5ff8ece9c4135175da4103cee1bec360be
treec9ac301dff2d64252f4e934eac05b67acce52d63
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
clk: ralink: avoid to set 'CLK_IS_CRITICAL' flag for gates

'clk_init_data' for gates is setting up 'CLK_IS_CRITICAL'
flag for all of them. This was being doing because some
drivers of this SoC might not be ready to use the clock
and we don't wanted the kernel to disable them since default
behaviour without clock driver was to set all gate bits to
enabled state. After a bit more testing and checking driver
code it is safe to remove this flag and just let the kernel
to disable those gates that are not in use. No regressions
seems to appear.

Fixes: 48df7a26f470 ("clk: ralink: add clock driver for mt7621 SoC")
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210727055537.11785-1-sergio.paracuellos@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ralink/clk-mt7621.c