From 02685e262a2d88bc8ae0eeeb04cd8cc03b825f5d Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Sun, 4 Feb 2024 16:56:54 +0800 Subject: [PATCH] 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 Change-Id: I67bef5663d4cc5bf838f5db0d02b643105d25be6 --- drivers/clk/rockchip/clk-rv1106.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rv1106.c b/drivers/clk/rockchip/clk-rv1106.c index 0833bf2adb8b..f61cbbf2e81d 100644 --- a/drivers/clk/rockchip/clk-rv1106.c +++ b/drivers/clk/rockchip/clk-rv1106.c @@ -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,