Re: [PATCH] media: rockchip: rkcif: convert timeout to secs_to_jiffies()
From: Michael Riesch
Date: Fri Sep 18 2026 - 11:46:47 EST
Hi Amin,
Thanks for the patch!
On 9/18/26 15:05, Amin Gattout wrote:
> Use secs_to_jiffies() to simplify the code.
>
> Signed-off-by: Amin Gattout <amin.gattout@xxxxxxxxx>
Acked-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxx>
Best regards,
Michael
> ---
> drivers/media/platform/rockchip/rkcif/rkcif-stream.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/rockchip/rkcif/rkcif-stream.c b/drivers/media/platform/rockchip/rkcif/rkcif-stream.c
> index 3130d420ad55..f82eaf9a37d1 100644
> --- a/drivers/media/platform/rockchip/rkcif/rkcif-stream.c
> +++ b/drivers/media/platform/rockchip/rkcif/rkcif-stream.c
> @@ -314,7 +314,7 @@ static void rkcif_stream_stop_streaming(struct vb2_queue *queue)
>
> stream->stopping = true;
> ret = wait_event_timeout(stream->wq_stopped, !stream->stopping,
> - msecs_to_jiffies(1000));
> + secs_to_jiffies(1));
>
> if (!ret && stream->stop_streaming)
> stream->stop_streaming(stream);
>
> ---
> base-commit: 238650ef6c7c7cca08e032527329424c9fbd70e5
> change-id: 20260918-rkcif-secs-to-jiffies-1b98a96465f7
>
> Best regards,
> --
> Amin Gattout <amin.gattout@xxxxxxxxx>
>