mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
media: staging: rkisp1: cap: fix timeout when stopping the stream
The dma engine should be stopped first.
The driver waits for an interrupt to stop the stream in a known state
after a frame.
If rkisp1_cap_stream_disable() is called after stopping the rest of the
pipeline, then most likely the interrupt won't arrive, we'll get a
timeout and debugfs variables mp_stop_timeout or sp_stop_timeout will
be incremented.
Fixes: 37db540bb9d1f ("media: staging: rkisp1: cap: refactor enable/disable stream to allow multistreaming")
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
167faadfcf
commit
9d28a76d40
|
|
@ -895,6 +895,8 @@ static void rkisp1_pipeline_stream_disable(struct rkisp1_capture *cap)
|
|||
{
|
||||
struct rkisp1_device *rkisp1 = cap->rkisp1;
|
||||
|
||||
rkisp1_cap_stream_disable(cap);
|
||||
|
||||
/*
|
||||
* If the other capture is streaming, isp and sensor nodes shouldn't
|
||||
* be disabled, skip them.
|
||||
|
|
@ -907,8 +909,6 @@ static void rkisp1_pipeline_stream_disable(struct rkisp1_capture *cap)
|
|||
|
||||
v4l2_subdev_call(&rkisp1->resizer_devs[cap->id].sd, video, s_stream,
|
||||
false);
|
||||
|
||||
rkisp1_cap_stream_disable(cap);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user