drivers: media: max96717: stop the csi receiver before the source
authorJulien Massot <julien.massot@collabora.com>
Tue, 30 Apr 2024 13:19:31 +0000 (15:19 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 4 Jun 2024 06:31:26 +0000 (08:31 +0200)
commit64a9e1fb1d6ff67d52d546732e11aea1e43b01e8
tree264a676ab68c656b65dfd80ae0d68f51631830c1
parent37a638e9bf998581655d012a36ee36ed4b4bfc94
drivers: media: max96717: stop the csi receiver before the source

Stopping the CSI source before stopping the serializer
CSI port may make the serializer not respond.
Then all the next writes to the device will fail.

max96717 1-0040: Error writing reg 0x0308: -121
max96717 1-0040: Error writing reg 0x0006: -121

Fix that by stopping the CSI receiver first and then CSI source.

Seen on max96717f revision 4.

Signed-off-by: Julien Massot <julien.massot@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/max96717.c