This patch series aims to fix OV5645 capture issue with 400kHz i2c bus frequency observed on RZ/G2L SMARC EVK platform. Testing OV5645 with i2c bus frequency @400kHz on RZ/G2L SMARC EVL platform shows issues like the captured image is either greenish or it is not capturing the image at all. However, It is working ok when the i2c frequency is 100kHz. From this, it is clear that we have a timing issue at high speed. The testing also shows that if we add a delay >= 1 msec after register write {0x3008, 0x82}, then the captured image is always good. Since OV5645 is showing issues @400kHz, it makes sense to add a small delay after register writes for settling the register values. So introduce a small delay by adding a read() after write() and also add a debug code for data mismatch. Biju Das (2): media: i2c: ov5645: Move the register 0x3008 from ov5645_global_init_setting media: i2c: ov5645: Add a small delay after writes in ov5645_set_register_array() drivers/media/i2c/ov5645.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) -- 2.25.1