summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraveen AC <pac@nvidia.com>2022-01-13 02:05:48 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2022-01-18 03:24:34 -0500
commite76829b9c05e2dd0708d4074eeb9276b9f632ba2 (patch)
tree05975350b5f2308ced238f23824f77e23e1158c5
parent06d8f135d0ec9d291ffb8a3049308a853edb4000 (diff)
driver:imx185:Add info message for expected i2c error.
Sensor not return ACK when SW_RESET is transferred. bug 200741759 Change-Id: I77639f84bcda653ba2d3adfd68727725a0c00e1f Signed-off-by: Praveen AC <pac@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2653996 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Shubham Chandra <shubhamc@nvidia.com> Reviewed-by: Ajith Kumar <ajithk@nvidia.com> Reviewed-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
-rw-r--r--drivers/media/i2c/imx185.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx185.c b/drivers/media/i2c/imx185.c
index 4ea018879..a217e99ee 100644
--- a/drivers/media/i2c/imx185.c
+++ b/drivers/media/i2c/imx185.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * imx185.c - imx185 sensor driver 2 * imx185.c - imx185 sensor driver
3 * 3 *
4 * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-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,
@@ -653,6 +653,7 @@ static int imx185_stop_streaming(struct tegracam_device *tc_dev)
653{ 653{
654 struct camera_common_data *s_data = tc_dev->s_data; 654 struct camera_common_data *s_data = tc_dev->s_data;
655 struct imx185 *priv = (struct imx185 *)tegracam_get_privdata(tc_dev); 655 struct imx185 *priv = (struct imx185 *)tegracam_get_privdata(tc_dev);
656 struct device *dev = tc_dev->dev;
656 int err; 657 int err;
657 658
658 err = imx185_write_table(priv, mode_table[IMX185_MODE_STOP_STREAM]); 659 err = imx185_write_table(priv, mode_table[IMX185_MODE_STOP_STREAM]);
@@ -660,6 +661,8 @@ static int imx185_stop_streaming(struct tegracam_device *tc_dev)
660 return err; 661 return err;
661 662
662 /* SW_RESET will have no ACK */ 663 /* SW_RESET will have no ACK */
664 dev_info(dev, "***0x%x will have no ACK(it's expected)****\n",
665 IMX185_SW_RESET_ADDR);
663 imx185_write_reg(s_data, IMX185_SW_RESET_ADDR, 0x01); 666 imx185_write_reg(s_data, IMX185_SW_RESET_ADDR, 0x01);
664 667
665 /* 668 /*