]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] s5k6aa: set usleep_range() range greater than 0
authorNicholas Mc Guire <hofrat@osadl.org>
Tue, 13 Dec 2016 01:58:02 +0000 (23:58 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 13 Jun 2017 17:20:50 +0000 (14:20 -0300)
As this is not in atomic context and it does not seem like a critical
timing setting a range of 1ms allows the timer subsystem to optimize
the hrtimer here.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/s5k6aa.c

index faee11383cb70d7833737ffd7c368ceacbcb50ae..9fd254a8e20d2771c2b92cfe29ba1494af1e2d1f 100644 (file)
@@ -838,7 +838,7 @@ static int __s5k6aa_power_on(struct s5k6aa *s5k6aa)
 
        if (s5k6aa->s_power)
                ret = s5k6aa->s_power(1);
-       usleep_range(4000, 4000);
+       usleep_range(4000, 5000);
 
        if (s5k6aa_gpio_deassert(s5k6aa, RST))
                msleep(20);