diff options
author | Praveen AC <pac@nvidia.com> | 2022-01-04 17:56:24 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2022-01-10 16:10:00 -0500 |
commit | 565de56422d5dee321d1ad81ac053f9991654653 (patch) | |
tree | 50fce073260d4a670fa6ecf23a733e302862e87e | |
parent | 643a51e0eb2b3eb2c3cecc6777e20ff040e2483b (diff) |
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 <pac@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2649706
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Nithin Varghese <nvarghese@nvidia.com>
Reviewed-by: Anubhav Rai <arai@nvidia.com>
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
-rw-r--r-- | drivers/media/i2c/imx219_mode_tbls.h | 4 |
1 files 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 @@ | |||
1 | /* | 1 | /* |
2 | * imx219_tables.h - sensor mode tables for imx219 HDR sensor. | 2 | * imx219_tables.h - sensor mode tables for imx219 HDR sensor. |
3 | * | 3 | * |
4 | * Copyright (c) 2015-2020, NVIDIA CORPORATION, All Rights Reserved. | 4 | * Copyright (c) 2015-2022, NVIDIA CORPORATION & AFFILIATES.All Rights Reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -36,9 +36,9 @@ static imx219_reg imx219_stop_stream[] = { | |||
36 | }; | 36 | }; |
37 | 37 | ||
38 | static imx219_reg imx219_mode_common[] = { | 38 | static imx219_reg imx219_mode_common[] = { |
39 | {IMX219_TABLE_WAIT_MS, 10}, | ||
40 | /* software reset */ | 39 | /* software reset */ |
41 | {0x0103, 0x01}, | 40 | {0x0103, 0x01}, |
41 | {IMX219_TABLE_WAIT_MS, 10}, | ||
42 | /* sensor config */ | 42 | /* sensor config */ |
43 | {0x0114, 0x01}, /* D-Phy, 2-lane */ | 43 | {0x0114, 0x01}, /* D-Phy, 2-lane */ |
44 | {0x0128, 0x00}, | 44 | {0x0128, 0x00}, |