All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: Ricardo Ribalda <ribalda@chromium.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Yunke Cao <yunkec@google.com>,
	stable@kernel.org
Subject: Re: [PATCH v5 0/2] media: uvcvideo: Fixes for frame sequence number
Date: Mon, 30 Mar 2026 17:34:48 +0200	[thread overview]
Message-ID: <556dc20a-9b5f-47ef-8182-9be7c4e39e8a@kernel.org> (raw)
In-Reply-To: <20260323-uvc-fid-v5-0-e2858b657aac@chromium.org>

Hi,

On 23-Mar-26 10:53, Ricardo Ribalda wrote:
> This series fixes a couple of corner cases where the frame sequence
> number is not properly handled.

Thanks, I've applied this to my local uvc/for-next branch and will
push this out later today.

As mentioned in replies to the individual patches I did squash in
some small fixes.

Regards,

Hans



> 
> Please note that the first patch has not been tested in a camera
> without EOF. To emulate it I have used this:
> 
> diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c
> index b66d701f2582d..097bed2f7845f 100644
> --- a/drivers/media/usb/uvc/uvc_video.c
> +++ b/drivers/media/usb/uvc/uvc_video.c
> @@ -1360,6 +1360,8 @@ static void uvc_video_decode_end(struct uvc_streaming *stream,
>  {
>         /* Mark the buffer as done if the EOF marker is set. */
>         if (data[1] & UVC_STREAM_EOF && buf->bytesused != 0) {
> +               printk(KERN_ERR "Ignoring EOF\n");
> +               return;
>                 uvc_dbg(stream->dev, FRAME, "Frame complete (EOF found)\n");
>                 if (data[0] == len)
>                         uvc_dbg(stream->dev, FRAME, "EOF in empty payload\n");
> 
> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
> ---
> Changes in v5 (Thanks Hans):
> - Swap order of patches
> - Remove duplicated conditions.
> - Link to v4: https://lore.kernel.org/r/20260320-uvc-fid-v4-0-f24f168ca2f9@chromium.org
> 
> Changes in v4 (Thanks Hans):
> - Fix 2/2 logic.
> - Link to v3: https://lore.kernel.org/r/20260316-uvc-fid-v3-0-c793354469b5@chromium.org
> 
> Changes in v3:
> - Fix typo in commit message.
> - Add new patch
> - Link to v2: https://lore.kernel.org/r/20260313-uvc-fid-v2-1-3f7a996d9047@chromium.org
> 
> Changes in v2 (Thanks Laurent):
> - Improve commit message.
> - Remove original timestamp and sequence assignment. It is not neeed
> - Link to v1: https://lore.kernel.org/r/20260310-uvc-fid-v1-1-5e37dc3c7024@chromium.org
> 
> ---
> Ricardo Ribalda (2):
>       media: uvcvideo: Fix sequence number when no EOF
>       media: uvcvideo: Fix buffer sequence in frame gaps
> 
>  drivers/media/usb/uvc/uvc_video.c | 110 +++++++++++++++++++++-----------------
>  1 file changed, 61 insertions(+), 49 deletions(-)
> ---
> base-commit: a7da7fb57f2a787412da1a62292a17fa00fbfbdf
> change-id: 20260310-uvc-fid-e1e55447b6f1
> 
> Best regards,


      parent reply	other threads:[~2026-03-30 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23  9:53 [PATCH v5 0/2] media: uvcvideo: Fixes for frame sequence number Ricardo Ribalda
2026-03-23  9:53 ` [PATCH v5 1/2] media: uvcvideo: Fix sequence number when no EOF Ricardo Ribalda
2026-03-24  0:20   ` Laurent Pinchart
2026-03-24  7:23     ` Ricardo Ribalda
2026-03-30 15:17     ` Hans de Goede
2026-03-23  9:53 ` [PATCH v5 2/2] media: uvcvideo: Fix buffer sequence in frame gaps Ricardo Ribalda
2026-03-30 15:31   ` Hans de Goede
2026-03-30 15:34 ` Hans de Goede [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556dc20a-9b5f-47ef-8182-9be7c4e39e8a@kernel.org \
    --to=hansg@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=ribalda@chromium.org \
    --cc=stable@kernel.org \
    --cc=yunkec@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.