From 565de56422d5dee321d1ad81ac053f9991654653 Mon Sep 17 00:00:00 2001 From: Praveen AC Date: Tue, 4 Jan 2022 22:56:24 +0000 Subject: driver: imx219: Fix for i2c error write mode Add enough time delay after sensor soft reset to avoid i2c error write mode. bug 200768012 Change-Id: Iacabee71957168f4eec15da45194d52bd1464fbf Signed-off-by: Praveen AC Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2649706 Tested-by: mobile promotions Reviewed-by: svcacv Reviewed-by: Nithin Varghese Reviewed-by: Anubhav Rai Reviewed-by: Shubham Chandra Reviewed-by: Sudhir Vyas Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/media/i2c/imx219_mode_tbls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/imx219_mode_tbls.h b/drivers/media/i2c/imx219_mode_tbls.h index 084bd9b2e..ae1b12713 100644 --- a/drivers/media/i2c/imx219_mode_tbls.h +++ b/drivers/media/i2c/imx219_mode_tbls.h @@ -1,7 +1,7 @@ /* * imx219_tables.h - sensor mode tables for imx219 HDR sensor. * - * Copyright (c) 2015-2020, NVIDIA CORPORATION, All Rights Reserved. + * Copyright (c) 2015-2022, NVIDIA CORPORATION & AFFILIATES.All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -36,9 +36,9 @@ static imx219_reg imx219_stop_stream[] = { }; static imx219_reg imx219_mode_common[] = { - {IMX219_TABLE_WAIT_MS, 10}, /* software reset */ {0x0103, 0x01}, + {IMX219_TABLE_WAIT_MS, 10}, /* sensor config */ {0x0114, 0x01}, /* D-Phy, 2-lane */ {0x0128, 0x00}, -- cgit v1.2.2