msm: camera: isp: Initialize completion structure

When setting the stream satte to UPDATING the active completion
should be initialized since we wait on that completion.

CRs-Fixed: 1064457
Change-Id: Ia17d8fb224ef2709761f03464aaf2d4541566817
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
This commit is contained in:
Shubhraprakash Das 2016-09-13 21:09:11 -07:00
parent fa50126290
commit f5640f2c84

View file

@ -1412,6 +1412,7 @@ static void __msm_isp_axi_stream_update(
switch (stream_info->state) {
case UPDATING:
stream_info->state = ACTIVE;
complete_all(&stream_info->active_comp);
break;
case STOP_PENDING:
msm_isp_axi_stream_enable_cfg(stream_info);
@ -3388,8 +3389,10 @@ static void msm_isp_remove_buf_queue(struct vfe_device *vfe_dev,
if (stream_info->bufq_handle[bufq_id]) {
stream_info->bufq_handle[bufq_id] = 0;
if (stream_info->state == ACTIVE)
if (stream_info->state == ACTIVE) {
init_completion(&stream_info->active_comp);
stream_info->state = UPDATING;
}
}
spin_unlock_irqrestore(&stream_info->lock, flags);
if (stream_info->state == UPDATING)