This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: ccs: Don't change the I²C address just for software reset
Author:  Sakari Ailus <[email protected]>
Date:    Thu Oct 8 10:56:48 2020 +0200

The sensor's address was changed before resetting and changing the
address again. Don't do it before reset as it's useless.

Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/i2c/ccs/ccs-core.c | 8 --------
 1 file changed, 8 deletions(-)

---

diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c
index 11c6de7f55aa..da7a6bd2c820 100644
--- a/drivers/media/i2c/ccs/ccs-core.c
+++ b/drivers/media/i2c/ccs/ccs-core.c
@@ -1552,14 +1552,6 @@ static int ccs_power_on(struct device *dev)
         * is found.
         */
 
-       if (sensor->hwcfg.i2c_addr_alt) {
-               rval = ccs_change_cci_addr(sensor);
-               if (rval) {
-                       dev_err(dev, "cci address change error\n");
-                       goto out_cci_addr_fail;
-               }
-       }
-
        rval = ccs_write(sensor, SOFTWARE_RESET, CCS_SOFTWARE_RESET_ON);
        if (rval < 0) {
                dev_err(dev, "software reset failed\n");

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to