linux-stable/drivers/media/platform/atmel
Alexandre Kroupski 4cd97e29c3 media: atmel: atmel-isi: fix timeout value for stop streaming
[ Upstream commit 623fd246bb ]

In case of sensor malfunction, stop streaming timeout takes much longer
than expected. This is due to conversion of time to jiffies: milliseconds
multiplied with HZ (ticks/second) gives out a value of jiffies with 10^3
greater. We need to also divide by 10^3 to obtain the right jiffies value.
In other words FRAME_INTERVAL_MILLI_SEC must be in seconds in order to
multiply by HZ and get the right jiffies value to add to the current
jiffies for the timeout expire time.

Fixes: 195ebc43bf ("[media] V4L: at91: add Atmel Image Sensor Interface (ISI) support")
Signed-off-by: Alexandre Kroupski <alexandre.kroupski@ingenico.com>
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:46:43 +01:00
..
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00
atmel-isc-regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel-isc.c media: atmel: atmel-isc: fix INIT_WORK misplacement 2019-12-05 15:38:14 +01:00
atmel-isi.c media: atmel: atmel-isi: fix timeout value for stop streaming 2020-01-27 14:46:43 +01:00
atmel-isi.h [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00