MLK-16823-1: mipi_csi: Add runtime suspend/resume
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 15 Nov 2017 11:10:38 +0000 (19:10 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:14 +0000 (14:50 -0500)
commit43505dcdc32fa466e7b3ce7d1ac69eeb74c3a5cf
tree8815e0d1fa8c8c786127feeb74c977584fc450db
parent5d59eb41e58cfd1d419ea1ca62f6b3eb5f2911c7
MLK-16823-1: mipi_csi: Add runtime suspend/resume

Add runtime suspend/resume features support for mipi csi.
For saving power, the mipi_csi turn off it's power domain
and clock after probe.

In order to share code with system pm suspend/resume, I
change system suspend/resume in this patch.

Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit f88f4ac99b23e03b1cc1d87209875d6001dbbbe5)
drivers/media/platform/imx8/mxc-mipi-csi2.c
drivers/media/platform/imx8/mxc-mipi-csi2.h