clk: rockchip: rv1106: use system_freezable_wq for pvtpll_calibrate_work

1. Do not freeze pvtpll_calibrate_work when calibration is processing,
otherwise the rate of pvtpll maybe wrong.
2. Set the delay to 300ms.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I67bef5663d4cc5bf838f5db0d02b643105d25be6
This commit is contained in:
Liang Chen
2024-02-04 16:56:54 +08:00
committed by Chen Liang
parent 3b699aa2b7
commit 02685e262a

View File

@@ -1135,7 +1135,7 @@ static void rockchip_rv1106_pvtpll_init(struct rockchip_clk_provider *ctx)
writel_relaxed(0xffff0004, ctx->reg_base + CRU_PVTPLL1_CON2_H);
writel_relaxed(0x00030003, ctx->reg_base + CRU_PVTPLL1_CON0_L);
schedule_delayed_work(&pvtpll_calibrate_work, msecs_to_jiffies(3000));
queue_delayed_work(system_freezable_wq, &pvtpll_calibrate_work, msecs_to_jiffies(300));
}
static int rv1106_clk_panic(struct notifier_block *this,