提交 f20dc12a 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

clk-bcm2835: Don't wait for pllh lock

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------
Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6b76283d
...@@ -644,15 +644,17 @@ static int bcm2835_pll_on(struct clk_hw *hw) ...@@ -644,15 +644,17 @@ static int bcm2835_pll_on(struct clk_hw *hw)
spin_unlock(&cprman->regs_lock); spin_unlock(&cprman->regs_lock);
/* Wait for the PLL to lock. */ /* Wait for the PLL to lock. */
timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS); if (strcmp(data->name, "pllh")) {
while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) { timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS);
if (ktime_after(ktime_get(), timeout)) { while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) {
dev_err(cprman->dev, "%s: couldn't lock PLL\n", if (ktime_after(ktime_get(), timeout)) {
clk_hw_get_name(hw)); dev_err(cprman->dev, "%s: couldn't lock PLL\n",
return -ETIMEDOUT; clk_hw_get_name(hw));
return -ETIMEDOUT;
}
cpu_relax();
} }
cpu_relax();
} }
cprman_write(cprman, data->a2w_ctrl_reg, cprman_write(cprman, data->a2w_ctrl_reg,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册