]> git.baikalelectronics.ru Git - kernel.git/commit
clk: rockchip: convert basic pll lock_wait to use regmap_read_poll_timeout
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Wed, 29 Jan 2020 16:38:20 +0000 (17:38 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 15 Jun 2020 09:47:14 +0000 (11:47 +0200)
commit4e28b6b60f52a08e91e65969520189943773815d
treefcd7d37fae3b8b40d06d4efaad388139655800b6
parent427d228a40cca70fea8c5269835afd3373b1fa3d
clk: rockchip: convert basic pll lock_wait to use regmap_read_poll_timeout

Instead of open coding the polling of the lock status, use the
handy regmap_read_poll_timeout for this. As the pll locking is
normally blazingly fast and we don't want to incur additional
delays, we're not doing any sleeps similar to for example the imx
clk-pllv4 and define a very safe but still short timeout of 1ms.

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20200129163821.1547295-2-heiko@sntech.de
drivers/clk/rockchip/clk-pll.c