Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12f53b24 authored by Purna Chandra Mandal's avatar Purna Chandra Mandal Committed by Stephen Boyd
Browse files

clk: microchip: use readl_poll_timeout() in pbclk_set_rate().



pbclk_set_rate() is using readl_poll_timeout_atomic() even
though spinlock is released. Fix it by replacing with
readl_poll_timeout().

Signed-off-by: default avatarPurna Chandra Mandal <purna.mandal@microchip.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 49abf69f
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -199,8 +199,8 @@ static int pbclk_set_rate(struct clk_hw *hw, unsigned long rate,


	spin_unlock_irqrestore(&pb->core->reg_lock, flags);
	spin_unlock_irqrestore(&pb->core->reg_lock, flags);


	/* wait again, for pbdivready */
	/* wait again for DIV_READY */
	err = readl_poll_timeout_atomic(pb->ctrl_reg, v, v & PB_DIV_READY,
	err = readl_poll_timeout(pb->ctrl_reg, v, v & PB_DIV_READY,
				 1, LOCK_TIMEOUT_US);
				 1, LOCK_TIMEOUT_US);
	if (err)
	if (err)
		return err;
		return err;