media: rockchip/cif: fix cif restart not work

if stop cif timeout, stopping flag still true,
restart cif can't work.

Change-Id: If4c0805aa5d1231b1dab6046a826fe41d9796872
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2018-09-07 14:55:04 +08:00
committed by Tao Huang
parent 6bf40a2254
commit 01beb00127

View File

@@ -362,8 +362,10 @@ static void rkcif_stop_streaming(struct vb2_queue *queue)
ret = wait_event_timeout(stream->wq_stopped,
stream->state != RKCIF_STATE_STREAMING,
msecs_to_jiffies(1000));
if (!ret)
if (!ret) {
rkcif_stream_stop(stream);
stream->stopping = false;
}
pm_runtime_put(dev->dev);
/* stop the sub device*/