Commit e5d7089c authored by Rahul Tanwar's avatar Rahul Tanwar Committed by zhaoxiaoqiang11
Browse files

clk: mxl: Add option to override gate clks

stable inclusion
from stable-v5.10.170
commit 9dcf2ca5d30147d56037679432908e4222c5794f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7V9QX

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9dcf2ca5d30147d56037679432908e4222c5794f



----------------------------------------------------

[ Upstream commit a5d49bd3 ]

In MxL's LGM SoC, gate clocks can be controlled either from CGU clk driver
i.e. this driver or directly from power management driver/daemon. It is
dependent on the power policy/profile requirements of the end product.

To support such use cases, provide option to override gate clks enable/disable
by adding a flag GATE_CLK_HW which controls if these gate clks are controlled
by HW i.e. this driver or overridden in order to allow it to be controlled
by power profiles instead.

Reviewed-by: default avatarYi xin Zhu <yzhu@maxlinear.com>
Signed-off-by: default avatarRahul Tanwar <rtanwar@maxlinear.com>
Link: https://lore.kernel.org/r/bdc9c89317b5d338a6c4f1d49386b696e947a672.1665642720.git.rtanwar@maxlinear.com


[sboyd@kernel.org: Add braces on many line if-else]
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Stable-dep-of: 106ef3bd ("clk: mxl: Fix a clk entry by adding relevant flags")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 20ebd15a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment