summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunyan Zhang <chunyan.zhang@unisoc.com>2020-04-08 10:02:34 +0800
committerStephen Boyd <sboyd@kernel.org>2020-04-13 12:20:07 -0700
commitca6df49d62d7cc4c1653a4d9b1ecc61ecd530e02 (patch)
tree083ae0be03fc4230d83660a6beb51020cfa2fa5b
parent742b50f9dccf20b4f908162de986b78e7186bb80 (diff)
downloadlinux-ca6df49d62d7cc4c1653a4d9b1ecc61ecd530e02.tar.gz
linux-ca6df49d62d7cc4c1653a4d9b1ecc61ecd530e02.tar.bz2
linux-ca6df49d62d7cc4c1653a4d9b1ecc61ecd530e02.zip
clk: sprd: don't gate uart console clock
Don't gate uart1_eb which provides console clock, gating that clock would make serial stop working if serial driver didn't enable that explicitly. Fixes: 0e4b8a2349f3 ("clk: sprd: add clocks support for SC9863A") Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> Link: https://lkml.kernel.org/r/20200408020234.31764-1-zhang.lyra@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/sprd/sc9863a-clk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/sprd/sc9863a-clk.c b/drivers/clk/sprd/sc9863a-clk.c
index a0631f7756cf..2e2dfb2d48ff 100644
--- a/drivers/clk/sprd/sc9863a-clk.c
+++ b/drivers/clk/sprd/sc9863a-clk.c
@@ -1641,8 +1641,9 @@ static SPRD_SC_GATE_CLK_FW_NAME(i2c4_eb, "i2c4-eb", "ext-26m", 0x0,
0x1000, BIT(12), 0, 0);
static SPRD_SC_GATE_CLK_FW_NAME(uart0_eb, "uart0-eb", "ext-26m", 0x0,
0x1000, BIT(13), 0, 0);
+/* uart1_eb is for console, don't gate even if unused */
static SPRD_SC_GATE_CLK_FW_NAME(uart1_eb, "uart1-eb", "ext-26m", 0x0,
- 0x1000, BIT(14), 0, 0);
+ 0x1000, BIT(14), CLK_IGNORE_UNUSED, 0);
static SPRD_SC_GATE_CLK_FW_NAME(uart2_eb, "uart2-eb", "ext-26m", 0x0,
0x1000, BIT(15), 0, 0);
static SPRD_SC_GATE_CLK_FW_NAME(uart3_eb, "uart3-eb", "ext-26m", 0x0,