OrangePi_CM5/drivers/media/platform/marvell-ccic
Mauro Carvalho Chehab ff7e4b94db media: marvel-ccic: fix some issues when getting pm_runtime
[ Upstream commit e7c617cab7a522fba5b20f9033ee98565b6f3546 ]

Calling pm_runtime_get_sync() is bad, since even when it
returns an error, pm_runtime_put*() should be called.
So, use instead pm_runtime_resume_and_get().

While here, ensure that the error condition will be checked
during clock enable an media open() calls.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:55:48 +02:00
..
Kconfig
Makefile
cafe-driver.c media: cafe-driver: use drvdata instead of back-casting from v4l2_device 2020-08-29 08:08:20 +02:00
mcam-core.c media: marvel-ccic: fix some issues when getting pm_runtime 2021-07-14 16:55:48 +02:00
mcam-core.h media: cafe-driver: use generic power management 2020-08-06 11:26:42 +02:00
mmp-driver.c media: media/platform/marvell-ccic: fix warnings when CONFIG_PM is not enabled 2020-11-05 14:32:35 +01:00