]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: mt9p031: Fix corrupted frame after restarting stream
authorDirk Bender <d.bender@phytec.de>
Mon, 26 Jul 2021 07:35:15 +0000 (09:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 5 Aug 2021 14:57:14 +0000 (16:57 +0200)
commit6f76e098b0c64192ebf45f57e71a8277c6d62d63
tree61b50f010db8cfd1b3790e19d2dfd458d3aeb4bc
parentbc12dc01b06a781442c4ab812f9d43584fcd70f4
media: mt9p031: Fix corrupted frame after restarting stream

To prevent corrupted frames after starting and stopping the sensor its
datasheet specifies a specific pause sequence to follow:

Stopping:
Set Pause_Restart Bit -> Set Restart Bit -> Set Chip_Enable Off

Restarting:
Set Chip_Enable On -> Clear Pause_Restart Bit

The Restart Bit is cleared automatically and must not be cleared
manually as this would cause undefined behavior.

Signed-off-by: Dirk Bender <d.bender@phytec.de>
Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/mt9p031.c