linux/drivers/media/platform
Mauro Carvalho Chehab 10343de268 media: s5p-jpeg: 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.

As a plus, pm_runtime_resume_and_get() doesn't return
positive numbers, so the return code validation can
be removed.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-05-10 11:36:34 +02:00
..
allegro-dvt media: allegro: change kernel-doc comment blocks to normal comments 2021-04-09 13:17:27 +02:00
am437x media: am437x: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
atmel media: atmel: properly get pm_runtime 2021-05-10 11:36:33 +02:00
cadence media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
coda media: coda: fix macroblocks count control usage 2021-04-15 13:23:26 +02:00
davinci media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
exynos4-is media: exynos4-is: Fix kernel-doc entries in fimc-is.h 2021-04-06 19:35:48 +02:00
exynos-gsc media: exynos-gsc: don't resume at remove time 2021-05-10 11:36:33 +02:00
imx-jpeg media: imx-jpeg: Fix double free in mxc_jpeg_remove 2021-04-09 12:54:49 +02:00
marvell-ccic media: marvel-ccic: fix some issues when getting pm_runtime 2021-05-10 11:36:33 +02:00
meson/ge2d media: meson-ge2d: fix rotation parameters 2021-04-15 13:19:28 +02:00
mtk-jpeg media: mtk-jpeg/mtk_jpeg_core.h: fix kernel-doc warnings 2021-03-22 12:56:51 +01:00
mtk-mdp media: mdk-mdp: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
mtk-vcodec media: mtk-vcodec: fix PM runtime get logic 2021-05-10 11:36:34 +02:00
mtk-vpu media: mtk-vpu/mtk_vpu.h: fix kernel-doc warnings 2021-03-22 12:59:50 +01:00
omap media: videobuf2: Move frame_vector into media subsystem 2021-01-12 14:15:31 +01:00
omap3isp media: omap3isp: Acquire graph mutex for graph traversal 2021-04-06 14:34:20 +02:00
qcom media: venus: Rework error fail recover logic 2021-05-10 11:36:33 +02:00
rcar-vin media: rcar-vin/rcar-vin.h: fix kernel-doc formatting 2021-03-22 12:54:07 +01:00
rockchip media: rkisp1: params: fix wrong bits settings 2021-04-15 13:23:26 +02:00
s3c-camif media: s3c-camif/camif-core.h: fix kernel-doc warnings 2021-04-06 10:27:55 +02:00
s5p-g2d media: s5p-g2d: Fix a memory leak in an error handling path in 'g2d_probe()' 2020-07-19 08:14:00 +02:00
s5p-jpeg media: s5p-jpeg: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:34 +02:00
s5p-mfc media: s5p-mfc: Fix kernel-doc entries in s5p_mfc_common.h 2021-04-06 19:36:11 +02:00
sti media: platform: sti: Fix runtime PM imbalance in regs_show 2021-04-09 12:55:05 +02:00
stm32 module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
sunxi media: sun8i-di: Fix runtime PM imbalance in deinterlace_start_streaming 2021-04-09 12:58:34 +02:00
ti-vpe media: ti-vpe: sc: remove redundant dev_err call in sc_create() 2021-04-06 16:09:31 +02:00
vsp1 media updates for v5.13-rc1 2021-04-28 09:24:36 -07:00
xilinx media: platform: xilinx: fix error return code of xvip_graph_init() 2021-03-22 10:19:45 +01:00
aspeed-video.c media: aspeed: fix clock handling logic 2021-03-11 11:59:45 +01:00
fsl-viu.c media: use getter/setter functions 2021-03-11 11:59:42 +01:00
imx-pxp.c media: imx-pxp: remove redundant dev_err call in pxp_probe() 2021-04-06 16:09:00 +02:00
imx-pxp.h
Kconfig media: venus : hfi: add venus image info into smem 2021-04-15 13:14:09 +02:00
m2m-deinterlace.c
Makefile media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder 2021-03-22 10:47:21 +01:00
mx2_emmaprp.c media: mx2_emmaprp: Fix memleak in emmaprp_probe 2020-09-26 10:15:39 +02:00
pxa_camera.c media: use getter/setter functions 2021-03-11 11:59:42 +01:00
rcar_drif.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
rcar_fdp1.c media: rcar_fdp1: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
rcar_jpu.c media: jpu: Do not zero reserved fields 2021-01-27 13:19:03 +01:00
rcar-fcp.c media: platform: fcp: Fix a reference count leak. 2020-09-27 10:52:52 +02:00
renesas-ceu.c media: renesas-ceu: Properly check for PM errors 2021-05-10 11:36:33 +02:00
sh_vou.c media: sh_vou: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:34 +02:00
via-camera.c Power management updates for 5.7-rc1 2020-03-30 15:05:01 -07:00
via-camera.h
video-mux.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00