Skip to content

Commit e083ef7

Browse files
Dave Stevensonpopcornmix
Dave Stevenson
authored andcommitted
V4L2: Increase the MMAL timeout to 3sec
MJPEG codec flush is now taking longer and results in a kernel panic if the driver has stopped waiting for the result when it finally completes. Increase the timeout value from 1 to 3secs. Signed-off-by: Dave Stevenson <[email protected]>
1 parent e08c176 commit e083ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/bcm2835/mmal-vchiq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ static int send_synchronous_mmal_msg(struct vchiq_mmal_instance *instance,
742742
return ret;
743743
}
744744

745-
ret = wait_for_completion_timeout(&msg_context.u.sync.cmplt, HZ);
745+
ret = wait_for_completion_timeout(&msg_context.u.sync.cmplt, 3*HZ);
746746
if (ret <= 0) {
747747
pr_err("error %d waiting for sync completion\n", ret);
748748
if (ret == 0)

0 commit comments

Comments
 (0)