linux/drivers/media
Bingbu Cao 900a5edf27 media: ov01a10: Enable runtime PM before registering async sub-device
commit 47a78052db upstream.

As the sensor device maybe accessible right after its async sub-device is
registered, such as ipu-bridge will try to power up sensor by sensor's
client device's runtime PM from the async notifier callback, if runtime PM
is not enabled, it will fail.

So runtime PM should be ready before its async sub-device is registered
and accessible by others.

It also sets the runtime PM status to active as the sensor was turned
on by i2c-core.

Fixes: 0827b58dab ("media: i2c: add ov01a10 image sensor driver")
Cc: stable@vger.kernel.org
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-01-31 16:20:55 -08:00
..
cec media updates for v6.7-rc1 2023-11-06 15:06:06 -08:00
common media: videobuf2: request more buffers for vb2_read 2024-01-25 15:45:03 -08:00
dvb-core media: dvbdev: drop refcount on error path in dvb_device_open() 2024-01-25 15:45:03 -08:00
dvb-frontends media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe() 2024-01-25 15:45:04 -08:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: ov01a10: Enable runtime PM before registering async sub-device 2024-01-31 16:20:55 -08:00
mc media: mc: Check pad flag validity 2023-10-07 10:55:48 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c) 2024-01-25 15:45:15 -08:00
platform media: rkisp1: Fix memory leaks in rkisp1_isp_unregister() 2024-01-25 15:45:03 -08:00
radio media: radio-si476x: don't fill in bus_info 2023-09-27 10:47:23 +02:00
rc media: lirc: drop trailing space from scancode transmit 2023-10-11 16:26:16 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: visl: Hook the (TRY_)DECODER_CMD stateless ioctls 2024-01-25 15:44:58 -08:00
tuners media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
usb media: cx231xx: fix a memleak in cx231xx_init_isoc 2024-01-25 15:45:02 -08:00
v4l2-core media: v4l: async: Fix duplicated list deletion 2024-01-25 15:45:01 -08: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