* [PATCH] [media] s5p-fimc: fimc_stop_capture bug fix
@ 2010-12-30 5:35 Sungchun Kang
2010-12-30 9:47 ` Sylwester Nawrocki
0 siblings, 1 reply; 2+ messages in thread
From: Sungchun Kang @ 2010-12-30 5:35 UTC (permalink / raw)
To: linux-media, linux-samsung-soc; +Cc: s.nawrocki, kgene.kim, Sungchun Kang
When is called fimc_stop_capture, it seems that wait_event_timeout
used improperly. It should be wake up by irq handler.
Reviewed-by Jonghun Han <jonghun.han@samsung.com>
Signed-off-by: Sungchun Kang <sungchun.kang@samsung.com>
---
This patch is depended on:
http://git.infradead.org/users/kmpark/linux-2.6-samsung/shortlog/refs/heads/vb2-mfc-fimc
drivers/media/video/s5p-fimc/fimc-capture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index 4e4441f..821f927 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -187,7 +187,7 @@ static int fimc_stop_capture(struct fimc_dev *fimc)
spin_unlock_irqrestore(&fimc->slock, flags);
wait_event_timeout(fimc->irq_queue,
- test_bit(ST_CAPT_SHUT, &fimc->state),
+ !test_bit(ST_CAPT_SHUT, &fimc->state),
FIMC_SHUTDOWN_TIMEOUT);
ret = v4l2_subdev_call(cap->sd, video, s_stream, 0);
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [media] s5p-fimc: fimc_stop_capture bug fix
2010-12-30 5:35 [PATCH] [media] s5p-fimc: fimc_stop_capture bug fix Sungchun Kang
@ 2010-12-30 9:47 ` Sylwester Nawrocki
0 siblings, 0 replies; 2+ messages in thread
From: Sylwester Nawrocki @ 2010-12-30 9:47 UTC (permalink / raw)
To: Sungchun Kang; +Cc: linux-media, linux-samsung-soc, s.nawrocki, kgene.kim
On 12/30/2010 06:35 AM, Sungchun Kang wrote:
> When is called fimc_stop_capture, it seems that wait_event_timeout
> used improperly. It should be wake up by irq handler.
>
> Reviewed-by Jonghun Han<jonghun.han@samsung.com>
> Signed-off-by: Sungchun Kang<sungchun.kang@samsung.com>
> ---
> This patch is depended on:
> http://git.infradead.org/users/kmpark/linux-2.6-samsung/shortlog/refs/heads/vb2-mfc-fimc
>
> drivers/media/video/s5p-fimc/fimc-capture.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
> index 4e4441f..821f927 100644
> --- a/drivers/media/video/s5p-fimc/fimc-capture.c
> +++ b/drivers/media/video/s5p-fimc/fimc-capture.c
> @@ -187,7 +187,7 @@ static int fimc_stop_capture(struct fimc_dev *fimc)
> spin_unlock_irqrestore(&fimc->slock, flags);
>
> wait_event_timeout(fimc->irq_queue,
> - test_bit(ST_CAPT_SHUT,&fimc->state),
just wondering, how this one sneaked in...it looks like a need to take
a long holiday.. ;)
Starting from the new year I am going to setup a fixed branch
v4l/fimc-for-next at git://git.infradead.org/users/kmpark/linux-2.6-samsung
so there is a common up to date tree available.
Until then please base your work on
git://git.infradead.org/users/kmpark/linux-2.6-samsung vb2
I will apply this patch in the next week.
> + !test_bit(ST_CAPT_SHUT,&fimc->state),
> FIMC_SHUTDOWN_TIMEOUT);
>
> ret = v4l2_subdev_call(cap->sd, video, s_stream, 0);
Thanks,
Sylwester
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-30 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-30 5:35 [PATCH] [media] s5p-fimc: fimc_stop_capture bug fix Sungchun Kang
2010-12-30 9:47 ` Sylwester Nawrocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.