media: imx: imx8mq-mipi_csi2: fix system resume
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Thu, 16 Dec 2021 09:03:36 +0000 (10:03 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:42 +0000 (21:18 +0100)
commitf0c2ba1ed4ad868331d8c6ea9119669a729b01a9
tree0f1d6c247a9ad28ce3d053c6f88001a99778ab9e
parent59c2b6d51803ad6b7af28f2a60a843b24374e692
media: imx: imx8mq-mipi_csi2: fix system resume

during system resume, interconnect bandwidth would currently be requested
even though the device is runtime suspended. This leaves the system in an
unbalanced state.

Fix that by only doing that in runtimem pm and splitting up runtime and
system suspend to be a more readable:
imx8mq_mipi_csi_pm_*() does the generic things called from system- and
runtime functions that each do specific things on top.

Fixes: f33fd8d77dd0 ("media: imx: add a driver for i.MX8MQ mipi csi rx phy and controller")
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx8mq-mipi-csi2.c