Re: [PATCH v3] clk: samsung: Prevent potential endless loop in the PLL set_rate ops

2020-09-17 Thread Sylwester Nawrocki
On 15.09.2020 13:34, Sylwester Nawrocki wrote: > On 14.08.2020 02:46, Chanwoo Choi wrote: >> On 8/13/20 6:55 PM, Sylwester Nawrocki wrote: >>> In the .set_rate callback for some PLLs there is a loop polling state >>> of the PLL lock bit and it may become an endless loop when something >>> goes wron

Re: [PATCH v3] clk: samsung: Prevent potential endless loop in the PLL set_rate ops

2020-09-15 Thread Sylwester Nawrocki
On 14.08.2020 02:46, Chanwoo Choi wrote: > On 8/13/20 6:55 PM, Sylwester Nawrocki wrote: >> In the .set_rate callback for some PLLs there is a loop polling state >> of the PLL lock bit and it may become an endless loop when something >> goes wrong with the PLL. For some PLLs there is already code f

Re: [PATCH v3] clk: samsung: Prevent potential endless loop in the PLL set_rate ops

2020-08-13 Thread Chanwoo Choi
Hi Sylwester, On 8/13/20 6:55 PM, Sylwester Nawrocki wrote: > In the .set_rate callback for some PLLs there is a loop polling state > of the PLL lock bit and it may become an endless loop when something > goes wrong with the PLL. For some PLLs there is already code for polling > with a timeout but

[PATCH v3] clk: samsung: Prevent potential endless loop in the PLL set_rate ops

2020-08-13 Thread Sylwester Nawrocki
In the .set_rate callback for some PLLs there is a loop polling state of the PLL lock bit and it may become an endless loop when something goes wrong with the PLL. For some PLLs there is already code for polling with a timeout but it uses the ktime API, which doesn't work in some conditions when th