Because ISI runtime suspend has disable clock before system
suspend. If driver does not know that and disable clock again
in system suspend callback. It will lead to isi clk count mis-
match.
Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
{
struct mxc_isi_dev *mxc_isi = dev_get_drvdata(dev);
- if (mxc_isi->flags & MXC_ISI_PM_SUSPENDED)
+ if ((mxc_isi->flags & MXC_ISI_PM_SUSPENDED) ||
+ (mxc_isi->flags & MXC_ISI_RUNTIME_SUSPEND))
return 0;
clk_disable_unprepare(mxc_isi->clk);