Skip to content

Commit bacf67b

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

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
@@ -643,15 +643,17 @@ static int bcm2835_pll_on(struct clk_hw *hw)
643643
spin_unlock(&cprman->regs_lock);
644644

645645
/* Wait for the PLL to lock. */
646-
timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS);
647-
while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) {
648-
if (ktime_after(ktime_get(), timeout)) {
649-
dev_err(cprman->dev, "%s: couldn't lock PLL\n",
650-
clk_hw_get_name(hw));
651-
return -ETIMEDOUT;
646+
if (strcmp(data->name, "pllh")) {
647+
timeout = ktime_add_ns(ktime_get(), LOCK_TIMEOUT_NS);
648+
while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) {
649+
if (ktime_after(ktime_get(), timeout)) {
650+
dev_err(cprman->dev, "%s: couldn't lock PLL\n",
651+
clk_hw_get_name(hw));
652+
return -ETIMEDOUT;
653+
}
654+
655+
cpu_relax();
652656
}
653-
654-
cpu_relax();
655657
}
656658

657659
cprman_write(cprman, data->a2w_ctrl_reg,

0 commit comments

Comments
 (0)