linux-stable/drivers/media
Laurent Pinchart 02852c01f6 media: i2c: imx290: Initialize runtime PM before subdev
Initializing the subdev before runtime PM means that no subdev
initialization can interact with the runtime PM framework. This can be
problematic when modifying controls, as the .s_ctrl() handler commonly
calls pm_runtime_get_if_in_use(). These code paths are not trivial,
making the driver fragile and possibly causing subtle bugs.

To make the subdev initialization more robust, initialize runtime PM
first.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-02-03 15:05:02 +01:00
..
cec media: Switch to use dev_err_probe() helper 2022-12-07 17:58:46 +01:00
common MM patches for 6.2-rc1. 2022-12-13 19:29:45 -08:00
dvb-core Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
dvb-frontends media: dvb-frontends/tc90522: Convert to i2c's .probe_new() 2023-01-22 08:33:11 +01:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: i2c: imx290: Initialize runtime PM before subdev 2023-02-03 15:05:02 +01:00
mc media: mc: entity: Fix doc for media_graph_walk_init 2023-01-22 09:25:29 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
platform media: imx: imx7-media-csi: fix missing clk_disable_unprepare() in imx7_csi_init() 2023-01-22 09:26:51 +01:00
radio media: si470x: Fix use-after-free in si470x_int_in_callback() 2022-12-07 17:58:47 +01:00
rc media: rc/ir-rx51: Drop empty platform remove function 2023-01-22 08:36:58 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media updates for v6.2-rc1 2022-12-13 11:36:58 -08:00
tuners media: tuners/si2157: Convert to i2c's .probe_new() 2023-01-22 08:33:25 +01:00
usb media: uvcvideo: Silence memcpy() run-time false positive warnings 2023-01-15 23:45:15 +02:00
v4l2-core media: v4l2-subdev: Add v4l2_subdev_s_stream_helper() function 2023-01-22 09:50:48 +01:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00