]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c: ov08d10: fix runtime PM handling in probe
authorMatthias Fend <matthias.fend@emfend.at>
Tue, 24 Mar 2026 10:41:35 +0000 (11:41 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 26 Mar 2026 13:33:07 +0000 (14:33 +0100)
commit35c7046be2be5e60be8128facb359a47f39e99cd
treec6c444e102984974e9ef151437b5b6752e025352
parentb7efb57ac9baad60f1ca67e7cceac853c7e9026c
media: i2c: ov08d10: fix runtime PM handling in probe

Set the device's runtime PM status and enable runtime PM before registering
the async sub-device. This is needed to avoid the case where the device is
runtime PM resumed while runtime PM has not been enabled yet.

Remove the related, non-driver-specific comment while at it.

Fixes: 7be91e02ed57 ("media: i2c: Add ov08d10 camera sensor driver")
Cc: stable@vger.kernel.org
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Matthias Fend <matthias.fend@emfend.at>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov08d10.c