mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
clk: rockchip: check grf when waiting pll lock
rockchip_clk_get_grf pass on return value from syscon_regmap_lookup_by_phandle, so we check grf to make sure whether to do the following things or not. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
parent
282312d1ac
commit
eb4e10c61d
1 changed files with 5 additions and 0 deletions
|
@ -94,6 +94,11 @@ static int rockchip_pll_wait_lock(struct rockchip_clk_pll *pll)
|
|||
unsigned int val;
|
||||
int delay = 24000000, ret;
|
||||
|
||||
if (IS_ERR(grf)) {
|
||||
pr_err("%s: grf regmap not available\n", __func__);
|
||||
return PTR_ERR(grf);
|
||||
}
|
||||
|
||||
while (delay > 0) {
|
||||
ret = regmap_read(grf, pll->lock_offset, &val);
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in a new issue