lede/target/linux/ipq807x/patches-5.10/147-clk-ipq8074-defer-from-disabling-gcc_sleep_clk_src.patch
José Hwong 77625481a6
ipq807x: refresh 5.10 patches (#9376)
Remove target/linux/ipq807x/patches-5.10/100-clk-qcom-ipq8074-fix-PCI-E-clock-oops.patch
2022-05-08 23:50:19 +08:00

32 lines
1.0 KiB
Diff

From db9c60394765843f6a77833bc40c27fac8852e97 Mon Sep 17 00:00:00 2001
From: Balaji Prakash J <bjagadee@codeaurora.org>
Date: Mon, 20 Apr 2020 20:07:51 +0530
Subject: [PATCH] clk: ipq8074: defer from disabling gcc_sleep_clk_src
Added CLK_IS_CRITICAL flag in order to defer from
disabling the sleep clock source.
Once the usb sleep clocks are disabled, clock framework
is trying to disable the sleep clock source also and
the below warning is observed.
[ 28.235750] gcc_sleep_clk_src status stuck at 'on'
[ 28.235794] WARNING: CPU: 0 PID: 29 at drivers/clk/qcom/clk-branch.c:92 clk_branch_toggle+0x160/0x178
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: I61fab902375716272ad9c426ce71581058f7bd35
---
drivers/clk/qcom/gcc-ipq8074.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/clk/qcom/gcc-ipq8074.c
+++ b/drivers/clk/qcom/gcc-ipq8074.c
@@ -678,6 +678,7 @@ static struct clk_branch gcc_sleep_clk_s
},
.num_parents = 1,
.ops = &clk_branch2_ops,
+ .flags = CLK_IS_CRITICAL,
},
},
};