]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c: imx290: Avoid communication during probe()
authorBenjamin Bara <benjamin.bara@skidata.com>
Tue, 3 Sep 2024 14:54:33 +0000 (16:54 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Oct 2024 07:32:36 +0000 (09:32 +0200)
commita92651b8e288db2fff461c544ce9b95f6fb40ce8
treef7917c36a6d654c9cca55ca3f7f36f4aaef2014b
parent856e89ff581d43b844e3b439070a3f3a65564aa4
media: i2c: imx290: Avoid communication during probe()

As we don't know the mode during probe(), it doesn't make sense to
update the sensors' registers with assumptions. As imx290_set_ctrl(),
which is responsible for the happening communication, already ensures that
there is no communication with a suspended sensor, put the sensor to
suspend before calling it.

To clarify the dependency of the PM runtime to the link of the subdev
and the imx290 instance, put the block together.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx290.c