We need to set parent clock for some audio clock in dts,
when the system enter suspend, the whole audio subsystem
may be power off, the parent setting should be lost, so
we need to set CLK_SET_PARENT_NOCACHE flag in imx_clk_mux_scu,
to let the operation of reset parent clock in
drivers/soc/imx/pm-domains.c take effect.
This issue only occurs on imx8qm, not on imx8qxp, for on imx8qxp
the ADMA subsystem don't enter power off, there is other
device in power on state in suspend.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit
5e8b48b90effa1aa2b9fbbd8919b131f6ad86946)
u8 shift, u8 width, const char **parents, int num_parents, const char *pd_name)
{
return clk_register_mux_scu(NULL, name, parents, num_parents,
- CLK_SET_RATE_NO_REPARENT, reg, shift,
+ CLK_SET_RATE_NO_REPARENT | CLK_SET_PARENT_NOCACHE,
+ reg, shift,
width, 0, &imx_ccm_lock, pd_name);
}