linux-stable/drivers/media/platform/am437x
Mauro Carvalho Chehab c41e024933 media: am437x: fix pm_runtime_get_sync() usage count
The pm_runtime_get_sync() internally increments the
dev->power.usage_count without decrementing it, even on errors.
Replace it by the new pm_runtime_resume_and_get(), introduced by:
commit dd8088d5a8 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
in order to properly decrement the usage counter, avoiding
a potential PM usage counter leak.

While here, ensure that the driver will check if PM runtime
resumed at vpfe_initialize_device().

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-05-10 11:36:33 +02:00
..
am437x-vpfe.c media: am437x: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
am437x-vpfe.h media: am437x-vpfe: Switch to SPDX Licensing 2019-10-01 16:15:38 -03:00
am437x-vpfe_regs.h media: am437x-vpfe: Switch to SPDX Licensing 2019-10-01 16:15:38 -03:00
Kconfig media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00