diff options
author | AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> | 2021-01-13 19:38:10 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-02-14 12:56:54 -0800 |
commit | c3656218386a40d884d8a757e1683028147c6e1c (patch) | |
tree | 9ae22ca788756b327818dc8303a8b8efd6df310c /drivers/clk/qcom | |
parent | fe121bfe261717e930abdb4a905e5c01b7f47cc3 (diff) | |
download | linux-c3656218386a40d884d8a757e1683028147c6e1c.tar.gz linux-c3656218386a40d884d8a757e1683028147c6e1c.tar.bz2 linux-c3656218386a40d884d8a757e1683028147c6e1c.zip |
clk: qcom: gcc-sdm660: Mark GPU CFG AHB clock as critical
This clock is critical for any access to the GPU: gating it will
crash the system when the GPU has been initialized (so, you cannot
gate it unless you deinit the Adreno completely).
So, to achieve a working state with GPU on, set the CLK_IS_CRITICAL
flag to this clock.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Link: https://lore.kernel.org/r/20210113183817.447866-3-angelogioacchino.delregno@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r-- | drivers/clk/qcom/gcc-sdm660.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c index 3b7181d0ff71..6394257ca8c0 100644 --- a/drivers/clk/qcom/gcc-sdm660.c +++ b/drivers/clk/qcom/gcc-sdm660.c @@ -1571,6 +1571,7 @@ static struct clk_branch gcc_gpu_cfg_ahb_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_gpu_cfg_ahb_clk", .ops = &clk_branch2_ops, + .flags = CLK_IS_CRITICAL, }, }, }; |