MLK-17367 imx8: pm-domains: fix restore parent for clk_stat_may_lost case
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 12 Jan 2018 10:38:09 +0000 (18:38 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:50 +0000 (14:52 -0500)
commit21ee53d741b4c38b6005c7c91ed83a16227e0182
tree9fcdb3bb5ad3d1ec1b328fa107674cd9ace8d588
parente638799287f75b8151253fbe13bb8721c02d8f1c
MLK-17367 imx8: pm-domains: fix restore parent for clk_stat_may_lost case

imx8_rsrc_clk->parent may be cleared during last probe failure.
So we need explicitly call CLK APIs clk_get_parent to get the cached
parent for the later restore. Otherwise, it may reparent to NULL parent
which results in 0 clk rate.

Fixes: 05caa1390f88cb (" MLK-17363-1 imx8: pm-domain: fix clock parent restore issue after suspend/resume")
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/soc/imx/pm-domains.c