]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:13 +0000 (14:23 +0200)
commitd29ba2c725005706d421213811ce88d7ca67f6a9
treeff98d77225b1085607ecf977e72252bbed14d58d
parent7c76dc0ad2d48eab0d883cd12f6524ac33a124d3
media: imx: imx8mq-mipi_csi2: fix system resume

[ Upstream commit e8c9f88213921a7d0774957dd30e9de7470847bd ]

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: f7a63cc350b1 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/imx/imx8mq-mipi-csi2.c