Skip to content

Commit ca6df49

Browse files
Chunyan Zhangbebarino
authored andcommitted
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: 0e4b8a2 ("clk: sprd: add clocks support for SC9863A") Signed-off-by: Chunyan Zhang <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 742b50f commit ca6df49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/sprd/sc9863a-clk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,8 +1641,9 @@ static SPRD_SC_GATE_CLK_FW_NAME(i2c4_eb, "i2c4-eb", "ext-26m", 0x0,
16411641
0x1000, BIT(12), 0, 0);
16421642
static SPRD_SC_GATE_CLK_FW_NAME(uart0_eb, "uart0-eb", "ext-26m", 0x0,
16431643
0x1000, BIT(13), 0, 0);
1644+
/* uart1_eb is for console, don't gate even if unused */
16441645
static SPRD_SC_GATE_CLK_FW_NAME(uart1_eb, "uart1-eb", "ext-26m", 0x0,
1645-
0x1000, BIT(14), 0, 0);
1646+
0x1000, BIT(14), CLK_IGNORE_UNUSED, 0);
16461647
static SPRD_SC_GATE_CLK_FW_NAME(uart2_eb, "uart2-eb", "ext-26m", 0x0,
16471648
0x1000, BIT(15), 0, 0);
16481649
static SPRD_SC_GATE_CLK_FW_NAME(uart3_eb, "uart3-eb", "ext-26m", 0x0,

0 commit comments

Comments
 (0)