Re: [PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-08-24 Thread Stephen Boyd
On 05/17, Purna Chandra Mandal wrote:
> 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: Purna Chandra Mandal 
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


Re: [PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-08-24 Thread Stephen Boyd
On 05/17, Purna Chandra Mandal wrote:
> 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: Purna Chandra Mandal 
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


[PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-05-16 Thread Purna Chandra Mandal
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: Purna Chandra Mandal 
---
Note: Please pull this complete series through the MIPS tree.

---

 drivers/clk/microchip/clk-core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/microchip/clk-core.c b/drivers/clk/microchip/clk-core.c
index ca85cea..c3b3014 100644
--- a/drivers/clk/microchip/clk-core.c
+++ b/drivers/clk/microchip/clk-core.c
@@ -199,9 +199,9 @@ static int pbclk_set_rate(struct clk_hw *hw, unsigned long 
rate,
 
spin_unlock_irqrestore(>core->reg_lock, flags);
 
-   /* wait again, for pbdivready */
-   err = readl_poll_timeout_atomic(pb->ctrl_reg, v, v & PB_DIV_READY,
-   1, LOCK_TIMEOUT_US);
+   /* wait again for DIV_READY */
+   err = readl_poll_timeout(pb->ctrl_reg, v, v & PB_DIV_READY,
+1, LOCK_TIMEOUT_US);
if (err)
return err;
 
-- 
1.8.3.1



[PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-05-16 Thread Purna Chandra Mandal
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: Purna Chandra Mandal 
---
Note: Please pull this complete series through the MIPS tree.

---

 drivers/clk/microchip/clk-core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/microchip/clk-core.c b/drivers/clk/microchip/clk-core.c
index ca85cea..c3b3014 100644
--- a/drivers/clk/microchip/clk-core.c
+++ b/drivers/clk/microchip/clk-core.c
@@ -199,9 +199,9 @@ static int pbclk_set_rate(struct clk_hw *hw, unsigned long 
rate,
 
spin_unlock_irqrestore(>core->reg_lock, flags);
 
-   /* wait again, for pbdivready */
-   err = readl_poll_timeout_atomic(pb->ctrl_reg, v, v & PB_DIV_READY,
-   1, LOCK_TIMEOUT_US);
+   /* wait again for DIV_READY */
+   err = readl_poll_timeout(pb->ctrl_reg, v, v & PB_DIV_READY,
+1, LOCK_TIMEOUT_US);
if (err)
return err;
 
-- 
1.8.3.1