Skip to content

Commit 378da81

Browse files
Phil Elwellpopcornmix
authored andcommitted
clk-bcm2835: Don't wait for pllh lock
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent 7ce021d commit 378da81

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

‎drivers/clk/bcm/clk-bcm2835.c‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,17 @@ static int bcm2835_pll_on(struct clk_hw *hw)
628628
spin_unlock(&cprman->regs_lock);
629629

630630
/* Wait for the PLL to lock. */
631-
timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS);
632-
while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) {
633-
if (ktime_after(ktime_get(), timeout)) {
634-
dev_err(cprman->dev, "%s: couldn't lock PLL\n",
635-
clk_hw_get_name(hw));
636-
return -ETIMEDOUT;
631+
if (strcmp(data->name, "pllh")) {
632+
timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS);
633+
while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) {
634+
if (ktime_after(ktime_get(), timeout)) {
635+
dev_err(cprman->dev, "%s: couldn't lock PLL\n",
636+
clk_hw_get_name(hw));
637+
return -ETIMEDOUT;
638+
}
639+
640+
cpu_relax();
637641
}
638-
639-
cpu_relax();
640642
}
641643

642644
cprman_write(cprman, data->a2w_ctrl_reg,

0 commit comments

Comments
 (0)