Re: [PATCH] clk: tegra: Fix an infinite loop when clock rate is zero

2018-10-02 Thread Stephen Boyd
Quoting Stephen Boyd (2018-10-01 15:08:46) > Quoting ryang (2018-09-21 15:00:37) > > Calling clk_set_rate or clk_round_rate will lock up the kernel when the > > rate is zero. This avoids the infinite loop and uses a slightly more > > optimized p divider calculation. > > > > Signed-off-by: ryang >

Re: [PATCH] clk: tegra: Fix an infinite loop when clock rate is zero

2018-10-01 Thread Stephen Boyd
Quoting ryang (2018-09-21 15:00:37) > Calling clk_set_rate or clk_round_rate will lock up the kernel when the > rate is zero. This avoids the infinite loop and uses a slightly more > optimized p divider calculation. > > Signed-off-by: ryang Do you have a more proper name? Or you want the author

Re: [PATCH] clk: tegra: Fix an infinite loop when clock rate is zero

2018-09-24 Thread Thierry Reding
On Fri, Sep 21, 2018 at 06:00:37PM -0400, ryang wrote: > Calling clk_set_rate or clk_round_rate will lock up the kernel when the > rate is zero. This avoids the infinite loop and uses a slightly more > optimized p divider calculation. > > Signed-off-by: ryang > --- > drivers/clk/tegra/clk-pll.c

Re: [PATCH] clk: tegra: Fix an infinite loop when clock rate is zero

2018-09-24 Thread Peter De Schrijver
On Fri, Sep 21, 2018 at 06:00:37PM -0400, ryang wrote: > Calling clk_set_rate or clk_round_rate will lock up the kernel when the > rate is zero. This avoids the infinite loop and uses a slightly more > optimized p divider calculation. > Acked-By: Peter De Schrijver At some point we should also

[PATCH] clk: tegra: Fix an infinite loop when clock rate is zero

2018-09-21 Thread ryang
Calling clk_set_rate or clk_round_rate will lock up the kernel when the rate is zero. This avoids the infinite loop and uses a slightly more optimized p divider calculation. Signed-off-by: ryang --- drivers/clk/tegra/clk-pll.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --gi