[PW_SID:969513] clk: spacemit: mark K1 pll1_d8 as critical#483
[PW_SID:969513] clk: spacemit: mark K1 pll1_d8 as critical#483linux-riscv-bot wants to merge 2 commits into
Conversation
The pll1_d8 clock is enabled by the boot loader, and is ultimately a parent for numerous clocks. Guodong Xu was recently testing DMA, adding a reset property, and discovered that the needed reset was not yet ready during initial probe. It dropped its clock reference, which dropped parent references, and along the way it dropped the sole reference to pll1_d8 (from its prior clk_get()). Clock pll1_d8 got disabled, which resulted in a non-functioning system. Mark that clock critical so it doesn't get turned off in this case. We might be able to turn this flag off someday, but for now it resolves the problem Guodong encountered. Define a new macro CCU_FACTOR_GATE_DEFINE() to allow clock flags to be supplied for a CCU_FACTOR_GATE clock. Fixes: 1b72c59 ("clk: spacemit: Add clock support for SpacemiT K1 SoC") Signed-off-by: Alex Elder <elder@riscstar.com> Tested-by: Guodong Xu <guodong@riscstar.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
|
Patch 1: "clk: spacemit: mark K1 pll1_d8 as critical" |
e82ef7c to
e65aa72
Compare
PR for series 969513 applied to workflow
Name: clk: spacemit: mark K1 pll1_d8 as critical
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=969513
Version: 1