clk: meson: pll: adjust timeout in meson_clk_pll_wait_lock()
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 29 Aug 2022 18:52:59 +0000 (20:52 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Tue, 8 Nov 2022 16:05:02 +0000 (17:05 +0100)
commit19648dddb14bdb722e83ab1dc8a54525c9846600
treedd4430748e932974fa5494de61a4dd870f7debad
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
clk: meson: pll: adjust timeout in meson_clk_pll_wait_lock()

Currently we loop over meson_parm_read() up to 24mln times.
This results in a unpredictable timeout period. In my case
it's over 5s on a S905X4-based system. Make the timeout
period predictable and set it to 100ms.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/a801afc0-a8f2-a0a4-0f2b-a7201351d563@gmail.com
drivers/clk/meson/clk-pll.c