MLK-17790-2: CI_PI: add system and runtime suspend/resume
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Tue, 13 Mar 2018 10:08:16 +0000 (18:08 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit327cc26c6a11454fd007bd3a0bb75dd5919f277c
tree944254082391eb7744285f1a8a5925748e30ba7b
parent334482c9abebedf3ece76ddedd17010d1b2e2de8
MLK-17790-2: CI_PI: add system and runtime suspend/resume

1. For QXP, after system suspend and resume, parent of pixel
and per clk will drop, so driver need to restore it. The rate
of pixel and per clk also will miss, so driver have to set it
in resume callback again.

2. I have to power off CI_PI subsystem power domain in resume
callback, otherwise setting clock parent will fail.

3. Driver need free gpio resouce after device do not use it.

Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 986098a52e62b89d6f6f7afdb75d17d77649db59)
drivers/media/platform/imx8/ov5640_v3.c