]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c: imx334: Enable runtime PM before sub-device registration
authorTarang Raval <tarang.raval@siliconsignals.io>
Sat, 29 Mar 2025 05:43:29 +0000 (11:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:28 +0000 (11:05 +0100)
commitfce2d5e2b3ce1ef689ce891c912f0c19a1916728
treeb5ae6593936a5963d51b4abe71f12f5e51f7fd2d
parentbcc8724b34c5125a0bbf863d218fc513b2cb0c25
media: i2c: imx334: Enable runtime PM before sub-device registration

[ Upstream commit 01dfdf6a80c57151af0589af0db7adbbdd1361c7 ]

Runtime PM is fully initialized before calling
v4l2_async_register_subdev_sensor(). Moving the runtime PM initialization
earlier prevents potential access to an uninitialized or powered-down
device.

Signed-off-by: Tarang Raval <tarang.raval@siliconsignals.io>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/imx334.c