OSDN Git Service

media: ccs: Remove unnecessary delays from power-up sequence
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 5 Oct 2020 21:17:12 +0000 (23:17 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 11:27:32 +0000 (12:27 +0100)
SMIA nor CCS need these delays; remove them.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c

index 5014aa0..89dc095 100644 (file)
@@ -1309,14 +1309,12 @@ static int ccs_power_on(struct device *dev)
                dev_err(dev, "failed to enable vana regulator\n");
                return rval;
        }
-       usleep_range(1000, 1000);
 
        rval = clk_prepare_enable(sensor->ext_clk);
        if (rval < 0) {
                dev_dbg(dev, "failed to enable xclk\n");
                goto out_xclk_fail;
        }
-       usleep_range(1000, 1000);
 
        gpiod_set_value(sensor->reset, 0);
        gpiod_set_value(sensor->xshutdown, 1);