summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@opentech.at>2019-05-08 17:11:53 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-23 16:18:18 +0200
commita1038ee8ca9f857d4d2e809a02bfe69ecb085b25 (patch)
tree971a56f7d79f80b24c6276a42bbe931faed54989
parentmedia: marvell-ccic: don't generate EOF on parallel bus (diff)
downloadlinux-a1038ee8ca9f857d4d2e809a02bfe69ecb085b25.tar.xz
linux-a1038ee8ca9f857d4d2e809a02bfe69ecb085b25.zip
media: smiapp: core: add small range to usleep_range
No need for a high-accuracy delay here as long as it is more than 2 milliseconds this should be ok - as it is non-atomic context it will be not be precise 2 milliseconds so giving the hrtimer subsystem 50 microseconds to merge timers and reduce interrupts. Signed-off-by: Nicholas Mc Guire <hofrat@opentech.at> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/i2c/smiapp/smiapp-quirk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.c b/drivers/media/i2c/smiapp/smiapp-quirk.c
index 95c0272bb014..59cb2a51758a 100644
--- a/drivers/media/i2c/smiapp/smiapp-quirk.c
+++ b/drivers/media/i2c/smiapp/smiapp-quirk.c
@@ -202,7 +202,7 @@ static int jt8ev1_post_streamoff(struct smiapp_sensor *sensor)
return rval;
/* Wait for 1 ms + one line => 2 ms is likely enough */
- usleep_range(2000, 2000);
+ usleep_range(2000, 2050);
/* Restore it */
rval = smiapp_write_8(sensor, 0x3205, 0x00);