Skip to content

Commit a13ddca

Browse files
janaszewskimchehab
authored andcommitted
[media] exynos4-is: Wait for 100us before opening sensor
Some user space use cases result in kernel hangup on the HIC_OPEN_SENSOR command write. In case when a minimalistic application is used for setting up the streaming, the hangups occur only occasionally. In case of GStreamer use cases it is always the case. Signed-off-by: Jacek Anaszewski <[email protected]> Acked-by: Kyungmin Park <[email protected]> Cc: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 7677577 commit a13ddca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/media/platform/exynos4-is/fimc-is.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,12 @@ static int fimc_is_hw_open_sensor(struct fimc_is *is,
631631

632632
fimc_is_mem_barrier();
633633

634+
/*
635+
* Some user space use cases hang up here without this
636+
* empirically chosen delay.
637+
*/
638+
udelay(100);
639+
634640
mcuctl_write(HIC_OPEN_SENSOR, is, MCUCTL_REG_ISSR(0));
635641
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
636642
mcuctl_write(sensor->drvdata->id, is, MCUCTL_REG_ISSR(2));

0 commit comments

Comments
 (0)